-
Notifications
You must be signed in to change notification settings - Fork 456
Create ChatWork.gs #97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
erickoledadevrel
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for adding this sample! A few small comments.
samples/ChatWork.gs
Outdated
| var CLIENT_SECRET = '...'; | ||
|
|
||
| /** | ||
| * Authorizes and makes a request to the Harvest API. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please fix the API name in this comment.
samples/ChatWork.gs
Outdated
| * Authorizes and makes a request to the Harvest API. | ||
| */ | ||
| function run() { | ||
| var service = getService(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This library uses 2-space tabs throughout. Please update this sample to match.
samples/ChatWork.gs
Outdated
| .setTokenHeaders({ | ||
| 'Authorization': 'Basic ' + Utilities.base64Encode(CLIENT_ID + ':' + CLIENT_SECRET) | ||
| }) | ||
| .setTokenPayloadHandler(function(tokenPayload) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you add a comment that explains why this is needed?
|
Thanks for review! |
|
Looks great, thanks! |
No description provided.