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
**_Note:_** Documentation for the client can be found [here.](https://www.github.com/paypal/PayPal-PHP-Server-SDK/tree/0.5.2/doc/client.md)
46
+
**_Note:_** Documentation for the client can be found [here.](https://www.github.com/paypal/PayPal-PHP-Server-SDK/tree/0.6.0/doc/client.md)
47
47
48
48
The following parameters are configurable for the API Client:
49
49
@@ -59,13 +59,13 @@ The following parameters are configurable for the API Client:
59
59
|`retryOnTimeout`|`bool`| Whether to retry on request timeout.<br>*Default*: `true`|
60
60
|`httpStatusCodesToRetry`|`array`| Http status codes to retry against.<br>*Default*: `408, 413, 429, 500, 502, 503, 504, 521, 522, 524`|
61
61
|`httpMethodsToRetry`|`array`| Http methods to retry against.<br>*Default*: `'GET', 'PUT'`|
62
-
|`loggingConfiguration`|[`LoggingConfigurationBuilder`](https://www.github.com/paypal/PayPal-PHP-Server-SDK/tree/0.5.2/doc/logging-configuration-builder.md)| Represents the logging configurations for API calls |
63
-
|`clientCredentialsAuth`|[`ClientCredentialsAuth`](https://www.github.com/paypal/PayPal-PHP-Server-SDK/tree/0.5.2/doc/auth/oauth-2-client-credentials-grant.md)| The Credentials Setter for OAuth 2 Client Credentials Grant |
62
+
|`loggingConfiguration`|[`LoggingConfigurationBuilder`](https://www.github.com/paypal/PayPal-PHP-Server-SDK/tree/0.6.0/doc/logging-configuration-builder.md)| Represents the logging configurations for API calls |
63
+
|`clientCredentialsAuth`|[`ClientCredentialsAuth`](https://www.github.com/paypal/PayPal-PHP-Server-SDK/tree/0.6.0/doc/auth/oauth-2-client-credentials-grant.md)| The Credentials Setter for OAuth 2 Client Credentials Grant |
64
64
65
65
The API client can be initialized as follows:
66
66
67
67
```php
68
-
$client = PaypalServerSDKClientBuilder::init()
68
+
$client = PaypalServerSdkClientBuilder::init()
69
69
->clientCredentialsAuthCredentials(
70
70
ClientCredentialsAuthCredentialsBuilder::init(
71
71
'OAuthClientId',
@@ -105,20 +105,20 @@ The SDK can be configured to use a different environment for making API calls. A
105
105
106
106
This API uses the following authentication schemes.
Copy file name to clipboardExpand all lines: doc/auth/oauth-2-client-credentials-grant.md
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,7 @@ Documentation for accessing and setting credentials for Oauth2.
27
27
You must initialize the client with *OAuth 2.0 Client Credentials Grant* credentials as shown in the following code snippet. This will fetch the OAuth token automatically when any of the endpoints, requiring *OAuth 2.0 Client Credentials Grant* autentication, are called.
28
28
29
29
```php
30
-
$client = PaypalServerSDKClientBuilder::init()
30
+
$client = PaypalServerSdkClientBuilder::init()
31
31
->clientCredentialsAuthCredentials(
32
32
ClientCredentialsAuthCredentialsBuilder::init(
33
33
'OAuthClientId',
@@ -46,7 +46,7 @@ Your application can also manually provide an OAuthToken using the setter `oAuth
46
46
Whenever the OAuth Token gets updated, the provided callback implementation will be executed. For instance, you may use it to store your access token whenever it gets updated.
To authorize a client using a stored access token, set up the `oAuthTokenProvider` in `ClientCredentialsAuthCredentialsBuilder` along with the other auth parameters before creating the client:
0 commit comments