File tree 1 file changed +9
-10
lines changed
1 file changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -88,16 +88,15 @@ $connection->setOauthClient(true);
88
88
$connection->setClientId('your-client-id')
89
89
->setClientSecret('your-client-secret')
90
90
->setRedirectUrl('your-callback-url');
91
-
92
- $tokenUpdateCallback = function (\Sendy\Api\Connection $connection) {
93
- $data = [
94
- 'access_token' => $connection->getAccessToken(),
95
- 'refresh_token' => $connection->getRefreshToken(),
96
- 'token_expires' => $connection->getTokenExpires(),
97
- ];
98
-
99
- // Use this data to store the tokens in your application
100
- };
91
+ ->setTokenUpdateCallback(function (\Sendy\Api\Connection $connection) {
92
+ $data = [
93
+ 'access_token' => $connection->getAccessToken(),
94
+ 'refresh_token' => $connection->getRefreshToken(),
95
+ 'token_expires' => $connection->getTokenExpires(),
96
+ ];
97
+
98
+ // Use this data to store the tokens in your application
99
+ });
101
100
```
102
101
103
102
### Endpoints
You can’t perform that action at this time.
0 commit comments