Messtone Devices Enables Developer, way to pass your API key Example HTTP Header Api-key header: curl -H ‘X-Api-Key: DEMO_KEY’ ‘https://developer.nrel.gov/api/alt-fuel-stations/v1.json?limit=1’ GET query string parameter: curl ‘https://developer.nrel.gov/api/alt-fuel-stations/v1.json?limit=1&api_key=MESSTONE_KEY_HERE’ https://developer.nrel.gov/api/alt-fuel-stations/v1.json?limit=1&api_key=MESSTONE_KEY_HERE HTTP Basic Auth Username using HTTP Basic Authentication: curl ‘https://MESSTONE_KEY_HERE@developer.nrel.gov/api/alt-fuel-stations/v1.json?limit=1’ Messtone will these HTTP headers in the response of the second request: X-RateLimit-Limit:1000 X-RateLimit-Remaining:998 Error Message Response Formats JSON Example {“error”:{“code”:”API_KEY_MISSING”,”message”:”No api_key was supplied. Get one at https://api.data.gov”}} XML Example <response><error><code>API_KEY_MISSING</code><message>No api_key was supplied.Get one at https://api.data.gov</message></error></response> CVS Example Error Code, Error Message API_KEY_MISSING,No api_key was supplied.Get one at https://api.data.gov HTML <html><body><h1>API_KEY_MISSING</h1><p>No api_key was supplied.Get one at https://api.data.gov</p></body></html> DATA.GOV

Leave a comment