简体   繁体   中英

Using Google APIs Client Library for JavaScript to access Google Sites API

I have a site on google sites which is for members only, and I want to write a mobile app (using PhoneGap) that will provide read-only access to that site.

Is there any way to use Google APIs Client Library for JavaScript in order to access Google Sites API so the mobile app can authenticate itself and query the site?

I ended up using Google Apps Script to write a script that return the data I need. I authorized the script to access my site (as the script runs as my user), and authorized everyone that has the script URL to execute the script, and then I made my PHoneGap app get the data using the script URL.

Seems like a nice and simple (and free) way to utilize Google cloud services to do what I needed.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM