-
Notifications
You must be signed in to change notification settings - Fork 182
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
OO Freshdesk API Class for Google Apps Script #21
Comments
Hey, looks like you posted your API key. Mike Kozak On Dec 17, 2015, at 7:25 AM, Zhuohuan LI <[email protected]mailto:[email protected]> wrote: I had just wrote a easy to use OO wrapper: gas-freshdeskhttps://githubcom/zixia/gas-freshdesk/ looks like this: var MyFreshdesk = new Freshdesk('https://mikebofreshdeskcom', 'Jrg0FQNzX3tzuHbiFjYQ') var ticket = new MyFreshdeskTicket({ ticketassign(9000658396) ticketdel() Loggerlog('ticket #' + ticketgetId() + ' was set!') hope it could useful and help others for easy start to api freshdesk Reply to this email directly or view it on GitHubhttps://github.com//issues/21. |
@meteormanaged thanks for noticing me that. it's ok, because that key is from my testing account. I created that account only for unit testing , and also make others to run the sample code easy. |
i would suggest that it's poor practice to include your token in a script in practice, and better to present it as an environment variable (or though some other mechanism). |
i agree with you. it's a poor practice. this is only for demo and example. (also used by my test cases). if use a environment variable, it should looks like this (because it's in gas, not nodejs) var API_TOKEY = PropertiesService.getScriptProperties().getProperty('FreshDeskApiToken') |
@meteormanaged fixed as you suggest. :] |
I had just wrote a easy to use OO wrapper: gas-freshdesk.
looks like this:
hope it could useful and help others for easy start to api freshdesk.
The text was updated successfully, but these errors were encountered: