試行錯誤してできるようになったので、簡単にまとめる。 基本的にはここに書いてあるとおり。 To use a Google Cloud Endpoint, you'll need to use the Google JavaScript client library. The code you need to add to use Endpoints is minimal, consisting of: Google App Engine — Google Developers var ROOT = 'https://<your-app-id>.appspot.com/_ah/api'; var CLIENT_ID = 'xxxxxxxxxxxxxxx.apps.googleusercontent.com'; var SCOPES = 'https://www.googleapis.com/
![JavaScript ClientからApp EngineのCloud EndpointsでOauth2認証する方法 - 今日の役に立たない一言 - Today’s Trifle! -](https://cdn-ak-scissors.b.st-hatena.com/image/square/d7f2db240098ef39450a085b5498214824ca6129/height=288;version=1;width=512/https%3A%2F%2Fcdn-ak.f.st-hatena.com%2Fimages%2Ffotolife%2Fs%2Fsatoshis%2F20131029%2F20131029091022.png)