0
私はGoogleカレンダーへのアクセスを取得しようとしているんですが、私は得る:
GET https://content.googleapis.com/calendar/v3/users/me/calendarList 401 (Unauthorized)
Googleのログイン動作しますが、カレンダーへのアクセスなし:
var scopes = [
"https://www.googleapis.com/auth/calendar",
"https://www.googleapis.com/auth/userinfo.email",
"https://www.googleapis.com/auth/userinfo.profile",
"https://www.googleapis.com/auth/plus.me",
"https://www.googleapis.com/auth/plus.login"
]
$cordovaOauth.google(clientId, scopes).then(success, error);
任意のアイデア?
すでにこれを行っています。カレンダーのアクセス許可はログイン画面に表示されません。だから私はスコープが何とか渡されないと仮定しています – Patrioticcow
私は、カレンダーAPIがAPIキーとは異なるOAuthクライアントキーを生成することがわかりました。そのOAuthキーを使用していますか? –
私はCalendar APIによって生成された 'clientId'を使用しています。つまり、OAuth 2.0で作成されたアプリ – Patrioticcow