アプリにアクセス権が付与されているデータ型は、認可スコープに対応しています。これらの権限をリクエストするには、アプリがアクセスする必要があるデータ型を FitnessOptions インスタンスに追加する必要があります。アプリが Google Fit データのいずれかを使用するようリクエストすると、Android SDK はデータがどのスコープに属しているかを自動的に確認し、それらのスコープに対する承認をユーザーに求めます。
API クライアントを作成する
API クライアントを作成し、データの書き込みまたは読み取りにアプリがアクセスする必要があるデータ型を追加します。次のエンドポイントを使用できます。
[null,null,["最終更新日 2025-03-11 UTC。"],[[["This guide provides instructions for Android developers to integrate Google Fit into their applications."],["It outlines the necessary setup steps, including obtaining a Google account, setting up Google Play services, and acquiring OAuth 2.0 client ID."],["Developers are guided through the process of creating an API client and implementing data access functionalities."],["Before publishing, developers need to apply for verification to ensure data security and compliance."],["The guide also explains the authorization flow users will experience when granting data access permissions to the app."]]],[]]