We implemented “capbility.imageCapture” and the “take()” command and tested it with our Dropcam device and see a filename of the image but we don’t know how to acquire the image from the SmarThings API:
We aren’t able to access the suggested REST API below for camera image using the OAuth Token that is negotiated for access to our SmartApp. Specifically, the OAuth Token that was successfully obtained with the “https://graph.api.smartthings.com/api/smartapps/endpoints” API.
Returns the following response using SmartApp auth token:
{
error: true
type: "AccessDenied"
message: “This request is not authorized by the specified access token”
}
We inquired about how to access this image file and Harper directed us to this URL below which is outside of the SmartApp url scheme. This URL works in the context of a USER but not in the context of a SMARTAPP.