Open7
Google KeepのAPIを調べてみる
![n0bisuke](https://res.cloudinary.com/zenn/image/fetch/s--0PrRgTZG--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_70/https://storage.googleapis.com/zenn-user-upload/avatar/2dfbab353e.jpeg)
"https://www.googleapis.com/auth/keep"のスコープは存在しないっぽい?
![n0bisuke](https://res.cloudinary.com/zenn/image/fetch/s--0PrRgTZG--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_70/https://storage.googleapis.com/zenn-user-upload/avatar/2dfbab353e.jpeg)
URLにアクセスするとこんな表示 legacy APIって言われてる
You are receiving this error either because your input OAuth2 scope name is invalid or it refers to a newer scope that is outside the domain of this legacy API.
This API was built at a time when the scope name format was not yet standardized. This is no longer the case and all valid scope names (both old and new) are catalogued at https://developers.google.com/identity/protocols/oauth2/scopes. Use that webpage to lookup (manually) the scope name associated with the API you are trying to call and use it to craft your OAuth2 request.
![n0bisuke](https://res.cloudinary.com/zenn/image/fetch/s--0PrRgTZG--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_70/https://storage.googleapis.com/zenn-user-upload/avatar/2dfbab353e.jpeg)
ドキュメントだけ残ってしまっているパターンかもしれない
REST APIそれっぽい
![n0bisuke](https://res.cloudinary.com/zenn/image/fetch/s--0PrRgTZG--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_70/https://storage.googleapis.com/zenn-user-upload/avatar/2dfbab353e.jpeg)
pythonでgkeepapiというライブラリ? ユーザー&パスワードでログイン認証してる風、、これどうやってるんだろ
![n0bisuke](https://res.cloudinary.com/zenn/image/fetch/s--0PrRgTZG--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_70/https://storage.googleapis.com/zenn-user-upload/avatar/2dfbab353e.jpeg)
Google Workspacesの管理者のところで追加する的な話題も...? ちょっと情報が出ていたタイミングが怪しい
![n0bisuke](https://res.cloudinary.com/zenn/image/fetch/s--0PrRgTZG--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_70/https://storage.googleapis.com/zenn-user-upload/avatar/2dfbab353e.jpeg)
個人GoogleアカウントとGoogle Workspaceアカウントのどっちも試してみた
- OAuthクライアント作成&トークン作成
- サービスアカウント作成
厳しかった
![n0bisuke](https://res.cloudinary.com/zenn/image/fetch/s--0PrRgTZG--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_70/https://storage.googleapis.com/zenn-user-upload/avatar/2dfbab353e.jpeg)
エンタープライズなら使えるのかも?
Google Keep API
Google Keep API は、企業環境で Google Keep のコンテンツを管理し、クラウド セキュリティ ソフトウェアによって特定された問題を解決するために使用されます。