<< Click to Display Table of Contents >> Get all tags |
|
REQUEST:
URI: https://cloud.teslascada.com/alltags
BODY: You can use Query format: clientid={clientid}&token={token}
Or JSON format:
{
"clientid": {clientid},
"token": {token},
}
Where:
{clientid} - ID of your client
{token} - Your TeslaCloud token that you got after connecting.
RESPONSES:
•200 Success. Get all tags that you use in your project.
BODY JSON format:
{
{tagname}: {tagvalue},
{tagname}: {tagvalue},
}
Where:
{tagname} - Name of the tag.
{tagvalue} - Value of the tag in String format.
•400 Not success. Could not get tag's values.
EXAMPLE:
REQUEST:
Query format: clientid=0&token=fsgeEG
RESPONSE: 200
JSON format:
{
"Temperature": "24.5",
"Humidity": "21.5",
"Pressure": "67"
}