GoogleAuthUtil: Daily Limit for Unauthenticated Use Exceeded
Posted
by
Copa
on Stack Overflow
See other posts from Stack Overflow
or by Copa
Published on 2012-10-25T22:58:00Z
Indexed on
2012/10/25
23:00 UTC
Read the original article
Hit count: 267
I am using the Google Client API and the GoogleAuthUtil.class to get access to the user's Google Drive Account.
String scope = "oauth2:" + DriveScopes.DRIVE;
String token = GoogleAuthUtil.getToken(getContext(), account.name, scope);
This is the whole magic. It worked the whole day but since a couple of hours I receive the following message when sending API calls:
com.google.api.client.googleapis.json.GoogleJsonResponseException: 403 Forbidden
{
"code": 403,
"errors": [
{
"domain": "usageLimits",
"message": "Daily Limit for Unauthenticated Use Exceeded. Continued use requires signup.",
"reason": "dailyLimitExceededUnreg",
"extendedHelp": "https://code.google.com/apis/console"
}
],
"message": "Daily Limit for Unauthenticated Use Exceeded. Continued use requires signup."
}
I dont know how to use a API Key from the console instead of an oauth2 authentication. There are two different "getToken()" messages. One has four parameters and the description for the last one says:
extras: Bundle containing additional information that may be relevant to the authentication scope.
But what do these information should look like? What informations do I have to put in the Bundle?
© Stack Overflow or respective owner