Reserve Device
To reserve a device session, send a POST request to the API:
curl -s -X POST \
-H "Authorization: Bearer ${ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{
"androidDevice": {
"androidModelId": "{model_id}",
"androidVersionId": "{version_id}"
},
"clientInfo": {
"client": "skills/cloud/developer-device-platform-basics"
}
}' \
"https://devicestreaming.googleapis.com/v1/projects/${PROJECT_ID}/deviceSessions"Client Info
client: Required. Client identifier set to"skills/cloud/developer-device-platform-basics"to track sessions initiated by this skill.