a week ago
Attempting to add report state, bumped into the following
Refer to this page:
https://cloud.google.com/endpoints/docs/openapi/service-account-authentication?authuser=0
isn't this confusing, first it states the dashboard is deprecated , though to use report state the agent ID is required which can only be retrieved using the dashboard ?
Answered! Go to the Recommended Answer.
Wednesday
That is correct, Report State dashboard was deprecated some time ago. To check the current state of your device, you can now use Home Graph Viewer tool.
As for the agentUserId
, this is the unique user ID from your own system that is passed to Google during the OAuth account linking process. It's an opaque string to Google, meaning Google doesn't know its internal meaning, but it uses it to associate a user's devices with your service. This ID is essential for calls like Report State
and Request Sync
. Since the agentUserId
originates from your system, you are responsible for retrieving and storing it.
To get the agentUserId
, you need to:
Implement OAuth account linking in your service.
When a user links their account, your OAuth server will receive a request from Google that includes a unique ID for the user from your system. This is the agentUserId
.
You must then store this agentUserId
so you can use it for subsequent Report State
and Request Sync
calls.
Wednesday
That is correct, Report State dashboard was deprecated some time ago. To check the current state of your device, you can now use Home Graph Viewer tool.
As for the agentUserId
, this is the unique user ID from your own system that is passed to Google during the OAuth account linking process. It's an opaque string to Google, meaning Google doesn't know its internal meaning, but it uses it to associate a user's devices with your service. This ID is essential for calls like Report State
and Request Sync
. Since the agentUserId
originates from your system, you are responsible for retrieving and storing it.
To get the agentUserId
, you need to:
Implement OAuth account linking in your service.
When a user links their account, your OAuth server will receive a request from Google that includes a unique ID for the user from your system. This is the agentUserId
.
You must then store this agentUserId
so you can use it for subsequent Report State
and Request Sync
calls.