以下を使用して Google ドライブ ファイルを取得しようとすると、エラーが発生します。
file = service.files().get(fileId=<googleDriveFileId>).execute()
エラーは次のとおりです。
<HttpError 404 when requesting https://www.googleapis.com/drive/v2/files/0B6Cpn8NXwgGPQjB6ZlRjb21ZdXc?alt=json returned "File not found: 0B6Cpn8NXwgGPQjB6ZlRjb21ZdXc">
ただし、このリンクをコピーしてブラウザーに直接貼り付けると、次のようになり ます。
別のエラーが発生します。
{
"error": {
"errors": [
{
"domain": "usageLimits",
"reason": "dailyLimitExceededUnreg",
"message": "Daily Limit Exceeded. Please sign up",
"extendedHelp": "https://code.google.com/apis/console"
}
],
"code": 403,
"message": "Daily Limit Exceeded. Please sign up"
}
}
1 日あたりの制限を超えそうになく、コンソールには 0% の使用率が表示されています。fileId が正しいことはわかっています。Google Picker を使用して fileId を取得しています。何か案は?