Results 1 to 9 of 9

Thread: API built into NextPVR Web Console

  1. #1
    Join Date
    Sep 2004
    Location
    Auckland, NZ
    Posts
    5,823

    API built into NextPVR Web Console

    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.

  2. #2
    Join Date
    Mar 2010
    Location
    Germany
    Posts
    42
    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.

  3. #3
    Join Date
    Mar 2010
    Location
    Germany
    Posts
    42
    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?

  4. #4
    Join Date
    May 2006
    Location
    Canada
    Posts
    28,048
    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

  5. #5
    Join Date
    Sep 2004
    Location
    Auckland, NZ
    Posts
    5,823
    Ive basically abandon this project, the community just wasnt interested.

  6. #6
    Join Date
    Mar 2011
    Location
    Nevada, USA
    Posts
    8

    damn

    Quote Originally Posted by reven View Post
    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...

  7. #7
    Join Date
    Feb 2013
    Location
    Västerås
    Posts
    26
    Quote Originally Posted by cracksloth2 View Post
    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!

  8. #8
    Join Date
    May 2006
    Location
    Canada
    Posts
    28,048
    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

  9. #9
    Join Date
    Sep 2004
    Location
    Auckland, NZ
    Posts
    5,823
    before v3 of nextpvr there werent many web api calls, but sub has added oodles into 3 so a separate api isnt required.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •