I am able to use Python to get data from this site https://www.cradlepointecm.com using their API https://www.cradlepointecm.com/api/v2
I would like to try using GeoEvent Server to do the same, and have tried the "Poll an external website for JSON" connector, but it keeps giving me a "failed to get a response" error.
I am suspecting it is the header(?) that is not formatted properly.
Can someone give an example of how to format the header and even better, an example of using the Cradlepoint API?
Thanks,
Mele
Solved! Go to Solution.
In order to get this working, I had to remove spaces I had in my headers like so X-ECM-API-ID:xxxxxxxxxxxxxxxxxxx,X-ECM-API-KEY:xxxxxxxxxxx,X-CP-API-ID:xxxxxxxxxxxx,X-CP-API-KEY:xxxxxxxxxxxxxxxx
In order to get this working, I had to remove spaces I had in my headers like so X-ECM-API-ID:xxxxxxxxxxxxxxxxxxx,X-ECM-API-KEY:xxxxxxxxxxx,X-CP-API-ID:xxxxxxxxxxxx,X-CP-API-KEY:xxxxxxxxxxxxxxxx