I am trying to make a GET request to isHardwareConnected from a voiceflow API and from the Console calls are routed via Apiary. This has been working fine when I was testing on localhost or using browser. but it shows invalid token when try to test api from voiceflow.
i try replacing blynk-cloud.com with Ip address. it work for getting pin status but it didnt work with isHardwareConnected.
I doubt that the developers will change the format of the API response from what it is now, as it has the potential to break things for any existing users who are using the current format successfully.
I guess that if you were using your own local server then you could find and edit the API response code to meet your needs and re-compile the source code before deploying it.
I suppose there is a potential workaround to part of the issue, by having your hardware regularly check the BLYNK_APP_CONNECTED status and upload the result to a virtual pin, but that doesn’t tell you if the hardware is connected and the result is only valid if the hardware is actually connected and updating the virtual pin.
what if i mention “Accept: application/json” in header during API call?
than it is possible to get response in json format??
is Accept is right header request for getting response in application/json format?
or there is any another header for getting response in json format??