NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 3 4 5 6 7 … 93 Next »
API (URL Info?)

 
  • 0 Vote(s) - 0 Average
API (URL Info?)
arrmo
Offline

Member

Posts: 148
Threads: 25
Joined: Aug 2015
#1
2015-08-22, 03:37 AM
Hi,

I'm trying to work on an interface to NextPVR ... and I see the new Swagger API, but I am looking at some (older?) other code to get an idea of how to interface - and seeing URL's that don't match Swagger, but perhaps another / older interface (but do still seem to work). Is there documentation on this anywhere?

For example, http://localhost:8866/service?method=rec...ing_id=902"

Thanks!
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,673
Threads: 767
Joined: Nov 2003
#2
2015-08-22, 03:45 AM
The API that uses the format /service?method=xxxxx.xxxxx is the API I created. It's used by the kodi addon and webclient. There is no documentation on this, but the kodi addon exists as a demonstration of how to use it.

The Swagger API is part of NEWA, created by UJB. It provides similar functions, but as a REST API. I think Emby uses this API, so you could probably look at this if you're looking for example code.

You can always ask if you have questions, and we'll get you an answer.
arrmo
Offline

Member

Posts: 148
Threads: 25
Joined: Aug 2015
#3
2015-08-22, 03:57 AM
Hi,

Makes sense, and no issue at all. Will go find the code for the Kodi add-on, work through that. I'm not seeing some of the functions I need in the Swagger API, but I may just be missing it yet.

Thanks!
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,850
Threads: 954
Joined: May 2006
#4
2015-08-22, 01:18 PM
arrmo Wrote:Makes sense, and no issue at all. Will go find the code for the Kodi add-on, work through that. I'm not seeing some of the functions I need in the Swagger API, but I may just be missing it yet.

It depends on what you want to do, in .NET you can do almost anything that NextPVR can do. NEWA (JSON) and sub's web interface offer just a subset but API. The client source is here https://github.com/kodi-pvr/pvr.nextpvr Kodi master is now on 16 though and pvr-nextpvr has not bee updated yet.

Martin
arrmo
Offline

Member

Posts: 148
Threads: 25
Joined: Aug 2015
#5
2015-08-22, 05:30 PM
Thanks for the help - will go digging ... Wink.

Much appreciated guys!
arrmo
Offline

Member

Posts: 148
Threads: 25
Joined: Aug 2015
#6
2015-08-22, 09:05 PM
BTW, not sure what you mean by .NET. If you have a chance at some point, can you clarify? Not a biggie.

Thanks!
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,850
Threads: 954
Joined: May 2006
#7
2015-08-22, 10:30 PM
Pronounced dotnet You would probably want to use C# to access sub's major API.

Martin
arrmo
Offline

Member

Posts: 148
Threads: 25
Joined: Aug 2015
#8
2015-08-23, 02:05 AM
Hi,

Makes sense, and I have used .NET before - just wasn't sure if there was some sort of library file that gets pulled in (to define structures, enum, etc.).

Thanks!
arrmo
Offline

Member

Posts: 148
Threads: 25
Joined: Aug 2015
#9
2015-08-26, 12:03 PM
Hi,

Perhaps one more question here, as I'm having troubles finding the right info ... Sad.

The example above returns some basic info on the recording, but I'd like to get the (local) file name ... is that possible (perhaps with a slightly different request)? Also, when I try to use a command to retrieve the file, it's missing the extension (which causes some grief). Is there a way to correct this (on my side)?

Thanks!
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,850
Threads: 954
Joined: May 2006
#10
2015-08-26, 12:24 PM
The .NET and JSON APIs both support that.

Martin
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): 1 2 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Timing.Info question mvallevand 2 2,062 2013-04-19, 03:54 AM
Last Post: mvallevand
  NPVR 2.x recordings metadata and timing.info whurlston 4 2,834 2012-08-01, 06:19 PM
Last Post: whurlston
  DVD info lookup via WMP? McBainUK 20 9,697 2010-07-23, 09:55 PM
Last Post: whurlston
  Getting reoccurring extras info fla 6 2,202 2009-08-28, 06:47 PM
Last Post: fla
  DVB-S tuning info bgowland 11 3,913 2008-12-08, 11:37 PM
Last Post: bgowland
  EXIF info ACTCMS 5 2,258 2008-07-11, 02:27 AM
Last Post: bgowland
  Function to provide more info on playing video? markm 3 1,927 2007-09-16, 02:19 PM
Last Post: ralphy
  Video OSD plugin - Current channel info McBainUK 4 1,874 2006-09-21, 01:34 AM
Last Post: tipstir
  How to get info on a running instance of GBPVR McBainUK 5 2,286 2006-03-23, 11:09 PM
Last Post: McBainUK
  Gmail plugin - How to encrypt saved account info? McBainUK 3 2,027 2006-03-06, 01:25 PM
Last Post: McBainUK

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode