How to Load Google API Javascript Library on Server?

105 views
Skip to first unread message

Roger Cauvin

unread,
Jan 7, 2017, 3:53:15 PM1/7/17
to Google API JavaScript Client

I'm trying to access the Google Sheets API from an hMailServer script. The script is Javascript and executes on a server, not in a browser. If you're unfamiliar with hMailServer, consider a script periodically running on a server as a chron job.


Google's documentation gives plenty of information on how to load the Google API Javascript client from HTML, but I haven't found any that describes how to do it from Javascript that runs on the server side and not in a browser context.


How do you load the Google API Javascript library in a script running on a server?


Also, what are the differences among:


https://apis.google.com/js/api.js
https://apis.google.com/js/client.js
https://apis.google.com/js/client:platform.js
Reply all
Reply to author
Forward
0 new messages