2012-12-04, 02:05 AM
just letting developers out there know, there is a API built into the NextPVR web console.
http://[server]:[port]/api
its a WebAPI api, all calls work over JSON (most over XML, not all currently will in future, some objects just need serialization added, JSON for some funny reason doesn't need this, its just automatic).
you can test in it the browser via json by including a "json=true" parameter
eg
http://localhost:8877/api/recordings?json=true
it uses HTTP methods for actions, so "GET" returns objects, "POST" updates objects, "DELETE" deletes/cancels objects etc. its not super well documented ATM, but full source code is available on github and you can see all the calls via the web console if you open up browser tools in chrome/firefox/IE.
this will allow native applications for iOS, Android, Windows Phone, etc talk to NextPVR without a developer needing to write their own service to do so.
the web console basically uses this api from the client side using javascript, so pretty much anything you can do in the NextPVR Web Console you can do via the API.
my intention is to keep this API as the core communication path and handle all requests this way.
if any developers would like to know more, i'm happy to help out.
I'm hoping other developers will pick this up, and make use of things like "Users" etc.
http://[server]:[port]/api
its a WebAPI api, all calls work over JSON (most over XML, not all currently will in future, some objects just need serialization added, JSON for some funny reason doesn't need this, its just automatic).
you can test in it the browser via json by including a "json=true" parameter
eg
http://localhost:8877/api/recordings?json=true
it uses HTTP methods for actions, so "GET" returns objects, "POST" updates objects, "DELETE" deletes/cancels objects etc. its not super well documented ATM, but full source code is available on github and you can see all the calls via the web console if you open up browser tools in chrome/firefox/IE.
this will allow native applications for iOS, Android, Windows Phone, etc talk to NextPVR without a developer needing to write their own service to do so.
the web console basically uses this api from the client side using javascript, so pretty much anything you can do in the NextPVR Web Console you can do via the API.
my intention is to keep this API as the core communication path and handle all requests this way.
if any developers would like to know more, i'm happy to help out.
I'm hoping other developers will pick this up, and make use of things like "Users" etc.