prratek_ramchandani
11/01/2021, 7:21 PMOAuthAuthenticator
to authenticate with the PayPal API and am running into some trouble. The API expects a request for an access token that looks like this if using curl
curl -v <https://api-m.sandbox.paypal.com/v1/oauth2/token> \
-H "Accept: application/json" \
-H "Accept-Language: en_US" \
-u "client_id:secret" \
-d "grant_type=client_credentials"
How do I replicate that with the oauth authenticator class? I tried using the client_id
and client_secret
properties and also tried setting the client ID and secret in the username
and password
params in oauth_request_body()
but both returned a forbidden error