我正试图访问谷歌日历,但我得到:
GET https://content.googleapis.com/calendar/v3/users/me/calendarList 401 (Unauthorized)
谷歌登录有效,但无法访问日历:
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);
有什么想法吗?