I am testing Google Nest API with my Nest devices (Nest Doorbell, Nest Camera)
And I am able to call following endpoints successfully with an access token issued from OAuth2 authorization process:
However, as I proceeded to testing enterprises.devices.executeCommand, I cannot provide a valid command
value in the request body, and received error response:
{
"error": {
"code": 400,
"message": "Command sdm.devices.commands.CameraLiveStream.GenerateRtspStream not supported.",
"status": "INVALID_ARGUMENT"
}
}
According to Request Body Doc,
The command name to execute, represented by the fully qualified protobuf message name.
It confuses me as I have no idea how to get such "fully qualified protobuf message name".
I assume that available command
values should be a finite list, but not sure why there's no clear documentation.
For specific API that you would like to call, you can refer to the following documentation. What you are looking at is the generic template for API calls.