Select to view content in your preferred language

Poll Cradlepoint for Json

765
1
Jump to solution
04-19-2022 01:37 PM
MeleKoneya
Frequent Contributor

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

1 Solution

Accepted Solutions
MeleKoneya
Frequent Contributor

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

View solution in original post

0 Kudos
1 Reply
MeleKoneya
Frequent Contributor

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

0 Kudos