We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5a7db6 commit daa1258Copy full SHA for daa1258
samples/Domo.gs
@@ -41,15 +41,13 @@ function getService() {
41
// Set the endpoint URLs.
42
.setTokenUrl('https://api.domo.com/oauth/token')
43
44
+ // Set the client ID and secret.
45
+ .setClientId(CLIENT_ID)
46
+ .setClientSecret(CLIENT_SECRET)
47
+
48
// Sets the custom grant type to use.
49
.setGrantType('client_credentials')
50
- // Sets the required Authorization header.
- .setTokenHeaders({
- Authorization: 'Basic ' +
- Utilities.base64Encode(CLIENT_ID + ':' + CLIENT_SECRET)
51
- })
52
-
53
// Set the property store where authorized tokens should be persisted.
54
.setPropertyStore(PropertiesService.getUserProperties());
55
}
0 commit comments