Skip to content

Commit bce5f58

Browse files
author
Eric Koleda
authored
Removing trailing whitespace.
1 parent 4323e58 commit bce5f58

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

samples/ZohoCRM.gs

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
var CLIENT_ID = '...';
77
var CLIENT_SECRET = '...';
88

9+
var CLIENT_ID = '1000.7ETQMTBW3CZ8904161FVI075OUAH9H';
10+
var CLIENT_SECRET = 'ff6ccb4c2e10105c1ba90ae92729570a7a783d918c';
11+
912
/**
1013
* Authorizes and makes a request to the Zoho CRM API.
1114
*/
@@ -38,35 +41,35 @@ function reset() {
3841

3942
/**
4043
* Configures the service.
41-
* @param {string} optAccountServer The account server to use when requesting
44+
* @param {string} optAccountServer The account server to use when requesting
4245
* tokens.
4346
*/
4447
function getService(optAccountServer) {
4548
var service = OAuth2.createService('Zoho')
46-
// Set the authorization base URL.
49+
// Set the authorization base URL.
4750
.setAuthorizationBaseUrl('https://accounts.zoho.com/oauth/v2/auth')
4851

4952
// Set the client ID and secret.
5053
.setClientId(CLIENT_ID)
5154
.setClientSecret(CLIENT_SECRET)
52-
53-
// Set scopes. See
55+
56+
// Set scopes. See
5457
// https://www.zoho.com/crm/developer/docs/api/oauth-overview.html#scopes.
5558
.setScope('ZohoCRM.org.all')
5659

5760
// Set the name of the callback function that should be invoked to
5861
// complete the OAuth flow.
5962
.setCallbackFunction('authCallback')
60-
63+
6164
// Set the access type to "offline" to get a refresh token.
6265
.setParam('access_type', 'offline')
6366

6467
// Set the property store where authorized tokens should be persisted.
6568
.setPropertyStore(PropertiesService.getUserProperties())
6669
.setCache(CacheService.getUserCache());
67-
70+
6871
// Set the token URL using the account server passed in or previously stored.
69-
var accountServer = optAccountServer ||
72+
var accountServer = optAccountServer ||
7073
service.getStorage().getValue('account-server');
7174
if (accountServer) {
7275
service.setTokenUrl(accountServer + '/oauth/v2/token');

0 commit comments

Comments
 (0)