我正在使用 MYOB 的 accountright Live api v2。我想在不进入登录屏幕的情况下获取访问令牌。当我发送 CURL 请求以获取访问令牌时,我被重定向到 myob 登录屏幕,如何跳过它?我发送的请求是 url:
' https://secure.myob.com/oauth2/v2/authorize '
发送的参数是:
Array
(
[client_id] => xxxxxxxxxxxxxxxxxxxxxxxx
[client_secret] => xxxxxxxxxxxxxxxxxxxxx
[scope] => CompanyFile
[code] => XXXXXXXXXXXXXX
[redirect_uri] => http://myappcodeonmydomain.com
[grant_type] => authorization_code
)