You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 29, 2023. It is now read-only.
To reduce the number of requests (especially during the high load on the website) I would like to implement the usage of access token, but there are no examples how to implement it.
In other words -- $apiContext is usually generated based on the creation of new OAuthTokenCredential() object
$apiContext = new \PayPal\Rest\ApiContext(
new \PayPal\Auth\OAuthTokenCredential(
'YOUR APPLICATION CLIENT ID',
'YOUR APPLICATION CLIENT SECRET'
)
);
Question - How to create $apiContext having already pre-generated access token?
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Referencing to https://developer.paypal.com/docs/api/get-an-access-token-curl/ PayPal advices to re-use the access token until it expires and then get/generate a new token.
To reduce the number of requests (especially during the high load on the website) I would like to implement the usage of access token, but there are no examples how to implement it.
In other words -- $apiContext is usually generated based on the creation of new OAuthTokenCredential() object
Question - How to create $apiContext having already pre-generated access token?
The text was updated successfully, but these errors were encountered: