PDA

View Full Version : API built into NextPVR Web Console



reven
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.

Ijaja
2013-10-17, 08:35 AM
oh, here is one! I will test it this week.
I am really using such feature, for my own multimedia tool, and until now i emulate the webclient using the "normal" web server, which is really not a charm.
Is it what i need: Requesting recordings and creating and deleting them?

Because we just talking: One of the biggest problems until now was, that when using the webservice it caused the recording service to crash often.
Yesterday i updated to a current version and i hoped that it would help about this. But this feature would even be better of course.

Ijaja
2013-10-17, 07:41 PM
Okay, this does not work.
Installation failed. Error 1001. I think you know it already.
Then i tried to contact you on your website. Also failed.
:-((

What can i do to install it. When do you plan do release a none alpha version?

mvallevand
2013-10-17, 11:04 PM
Have you checked NextPVR 3.1.1? It has more powerful and complete api functionality, even reven opted to use it for his Samsung client.

Martin

reven
2013-10-18, 04:14 AM
Ive basically abandon this project, the community just wasnt interested.

cracksloth2
2013-10-26, 08:20 PM
Ive basically abandon this project, the community just wasnt interested.

that is really too bad, reven!!! i have been following the project and have been pretty excited about it but must admit I've been waiting for a more stable release before I really got into it. I think it's a brilliant concept and the polish you were putting on it was incredible (a web application that didn't seem like a compromise to use). All the best, reven - hope you reconsider...

Oopsjoppe
2013-11-04, 10:19 AM
that is really too bad, reven!!! i have been following the project and have been pretty excited about it but must admit I've been waiting for a more stable release before I really got into it. I think it's a brilliant concept and the polish you were putting on it was incredible (a web application that didn't seem like a compromise to use). All the best, reven - hope you reconsider...

+1 . This was very important for me. The API Work is wonderful to have!

mvallevand
2013-11-04, 05:48 PM
There are already several API's available via sub's web server and NEWA. Because the NextPVR server is closed source, at best reven's Web Console would have provided a different wrapper around already available functionality.

Martin

reven
2013-11-04, 09:31 PM
before v3 of nextpvr there werent many web api calls, but sub has added oodles into 3 so a separate api isnt required.