api
Our API is still under development, but most routes are already capable of returning a json response. If you want to find out what route corresponds to a specific function you can open up your browser's developer tools.
All you have to do is grab the secret key from your dashboard's account page and use Accept: application/json
on the request's headers.
Example
If you want to list the podcasts under your account the curl command will look like this:
curl 'https://dashboard.nightcast.net/' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer SECRET_KEY'
And a JSON response will be returned, with an error
field and the requested information:
{"error":false,"podcasts":[{"id":1,"title":"My First Podcast"},{"id":2,"title":"My Second Podcast"}]}