Hey guyz,
My account has 3 locations: (Home, Office and Test Location). I created a web service smart app and installed it at Home location. When I called https://graph.api.smartthings.com/api/smartapps/endpoints from Postman using the API token listed in the simulator, I got 3 duplicate instances of the endpoint instead of one. It appears to me that the endpoint instances are somehow getting multiplied with the locations because when I created another location (Test Location 2), the endpoints call now returns 4 duplicate instances.
Why is this happening ?
Here is the response of the endpoints call I got:
[
{
“oauthClient”: {
“clientSecret”: “[client_secret]”,
“clientId”: “[client_id]”
},
“uri”: “https://graph.api.smartthings.com:443/api/smartapps/installations/96f0e207-d390-4e46-8d35-58495a8fc0eb”,
“base_url”: “https://graph.api.smartthings.com:443”,
“url”: “/api/smartapps/installations/96f0e207-d390-4e46-8d35-58495a8fc0eb”
},
{
“oauthClient”: {
“clientSecret”: “[client_secret]”,
“clientId”: “[client_id]”
},
“uri”: “https://graph.api.smartthings.com:443/api/smartapps/installations/96f0e207-d390-4e46-8d35-58495a8fc0eb”,
“base_url”: “https://graph.api.smartthings.com:443”,
“url”: “/api/smartapps/installations/96f0e207-d390-4e46-8d35-58495a8fc0eb”
},
{
“oauthClient”: {
“clientSecret”: “[client_secret]”,
“clientId”: “[client_id]”
},
“uri”: “https://graph.api.smartthings.com:443/api/smartapps/installations/96f0e207-d390-4e46-8d35-58495a8fc0eb”,
“base_url”: “https://graph.api.smartthings.com:443”,
“url”: “/api/smartapps/installations/96f0e207-d390-4e46-8d35-58495a8fc0eb”
},
{
“oauthClient”: {
“clientSecret”: “[client_secret]”,
“clientId”: “[client_id]”
},
“uri”: “https://graph.api.smartthings.com:443/api/smartapps/installations/96f0e207-d390-4e46-8d35-58495a8fc0eb”,
“base_url”: “https://graph.api.smartthings.com:443”,
“url”: “/api/smartapps/installations/96f0e207-d390-4e46-8d35-58495a8fc0eb”
}
]