문제

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top