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
See the [FitBit sample](samples/FitBit.gs) for the complete code.
217
217
218
218
#### Modifying the access token payload
219
-
Similar to Setting additional token headers, some services, such as the Smartsheet API, require you to [add a hash to the access token request payloads](http://smartsheet-platform.github.io/api-docs/?javascript#oauth-flow). The `setTokenPayloadHandler` method allows you to pass in a function to modify the payload of an access token request before the request is sent to the token endpoint:
219
+
220
+
Similar to Setting additional token headers, some services, such as the
221
+
Smartsheet API, require you to
222
+
[add a hash to the access token request payloads](http://smartsheet-platform.github.io/api-docs/?javascript#oauth-flow).
223
+
The `setTokenPayloadHandler` method allows you to pass in a function to modify
224
+
the payload of an access token request before the request is sent to the token
225
+
endpoint:
220
226
221
227
```js
222
228
// Set the handler for modifying the access token request payload:
@@ -240,3 +246,10 @@ wishes to access the resources of a particular user, it uses the service account
240
246
authorization flow to obtain an access token. See the sample
241
247
[`GoogleServiceAccount.gs`](samples/GoogleServiceAccount.gs) for more
242
248
information.
249
+
250
+
## Breaking changes
251
+
252
+
* Version 20 - Switched from using project keys to script IDs throughout the
253
+
library. When upgrading from an older version, ensure the callback URL
254
+
registered with the OAuth provider is updated to use the format
0 commit comments