Apteligent API Curl example

While going through Apteligent’s API Documents you may run into challenges with some of the advanced API calls. Please remember to pass the payload in your curls, an example call that will fetch error data about apps can be seen below:

POST /errorMonitoring/graph
For Mac OSX and Linux:
curl -d '{"params":{"appId":"<ENTER APP ID>","graph":"crashes","duration":43200}}' -H 'Content-type: application/json' -H 'Authorization: Bearer <ENTER TOKEN>https://developers.crittercism.com:443/v1.0/errorMonitoring/graph

Window's command prompt treats quotes differently compared to Bash. Please replace single quotes with double quotes and escape the quotes passed within the params.

For Windows:
curl -d "{\"params\":{\"appId\":\"<ENTER APP ID>\",\"graph\":\"crashes\",\"duration\":43200}}" -H "Content-type: application/json" -H "Authorization: Bearer <ENTER TOKEN>" https://developers.crittercism.com:443/v1.0/errorMonitoring/graph

Replace the bolded AppID and Access Token place holders with your AppID and Access Token.

Have more questions? Submit a request


Article is closed for comments.