Geocoding APIを使用する メモ書き
プロジェクトに所属し、使用するための資格を追加する必要がある
Project - APIs + - API - Credentials | + - Credntials - + - API Key | + - OAuth Client ID | + - Service account key
- プロジェクトを作成する
- プロジェクトに対し、APIライブラリからAPIを追加する
- プロジェクトに対し、資格(Credentials)の作成 (3つから選択する)
- 2で追加したAPIに3で作成した資格を追加する
例 Geocoding APIを使用するためのAPI Keyの取得
1. プロジェクトの作成
2. プロジェクトを選択
左上に選択されたプロジェクトが表示されている
3. APIsダッシュボードでAPIライブラリからAPIの追加
4. API Key Credentialの作成
Credentials
5. Geocoding APIに API Key Credentialを追加する
GeoCoding API → API restrictions → Select API → SAVE
Credentials (資格について)
以下の3つのAPIを使用するための資格が用意されている
- API Key
- OAuth Client ID
- Service account key
API Key
Identifiers your project using a simple API key to check quota and access.
ユーザ認証が必要のないAPIを叩くための資格
APIキーを取得できる。
OAuth Client ID
Request user consent so your app can access the use's data
ユーザ認証を要求するための資格
OAuthによるアクセストークンを取得するためのキー(Client ID / Client Key)を取得できる。
Service account key
Enables server-to-server, app-level authentication using robot accounts
ボット用の資格