People API を使用する準備を整える
最初のクライアント アプリケーションのコーディングを開始する前に、次の 3 つの作業を行う必要があります。
- Google アカウントを取得する
- プロジェクトを作成する
- アプリを設定する
このガイドでは、これらのタスクを行う方法について説明します。
1. Google アカウントを取得する
Google API Console でプロジェクトを作成するには、Google アカウントが必要です。すでにアカウントをお持ちの場合は
準備完了ですテスト用に別の Google アカウントが必要になることもあります。
2. クライアントのプロジェクトを作成する
People API にリクエストを送信するには、クライアントについて Google に通知し、API へのアクセスを有効にする必要があります。そのためには、Google API Console を使用してプロジェクト(設定と API アクセス情報の名前付きコレクション)を作成し、アプリケーションを登録します。
People API を使用するには、まず設定ツールを使用する必要があります。このツールを使って、Google API Console でのプロジェクトの作成、API の有効化、認証情報の作成を指示に沿って行うことができます。
3. アプリを設定する
サポートされている言語のいずれかを使用している場合は、いずれかのクライアント ライブラリの使用を検討してください。API にリクエストを送信するには、事前に承認を設定する必要があります。
さまざまな言語で連絡先のリストを取得する方法については、クイックスタートのサンプルコードをご覧ください。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-08-06 UTC。
[null,null,["最終更新日 2024-08-06 UTC。"],[[["To begin coding your client application, you must first obtain a Google Account, create a project in the Google API Console, and set up your app."],["Creating a project involves informing Google about your client and activating API access using the Google API Console, where you can register your application and manage settings."],["Before making requests to the API, ensure you've set up authorization and consider utilizing client libraries if your language is supported."]]],["To start coding, you must first obtain a Google Account. Then, use the Google API Console to create a project, which involves registering your application and enabling API access via the setup tool. Finally, set up your application, potentially using a client library and ensuring proper authorization before making API requests. Sample code is available to demonstrate fetching a list of contacts in various languages.\n"]]