I’m trying to use the SDK’s `OAuthAuthenticator` t...
# singer-tap-development
p
I’m trying to use the SDK’s
OAuthAuthenticator
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
Copy code
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