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 »
Media Browser Integration

 
  • 0 Vote(s) - 0 Average
Media Browser Integration
Svekke
Offline

Member

Posts: 121
Threads: 7
Joined: Oct 2012
#241
2014-02-02, 05:10 PM
mvallevand Wrote:It's a two step process just like the xml interface

First you need to use /public/Util/NPVR/Client/Instantiate to get the sid and and the salt and then calculate clientKey according to the docs and the submit

/public/Util/NPVR/Client/Initialize/ClientKey?sid=....

You need to save the sid for all transactions but that is only for remote access

Martin

I did that. But then i get the previous error....
I also don't think you need to provide the sid. According the api only the ClientKey...
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,184
Threads: 958
Joined: May 2006
#242
2014-02-02, 05:22 PM
You need the sid when connecting remotely. That is the only reason for using these methods.

Can you give me the json from Instantiate and your PIN if not using 0000 and calculated clientKey I will see if they match what I calculate

Martin
Svekke
Offline

Member

Posts: 121
Threads: 7
Joined: Oct 2012
#243
2014-02-02, 05:35 PM
mvallevand Wrote:You need the sid when connecting remotely. That is the only reason for using these methods.

Can you give me the json from Instantiate and your PIN if not using 0000 and calculated clientKey I will see if they match what I calculate

Martin

In the initialize there is no option to add the sid...
On other calls it's possible but not in the Initialize.

I did the Instantiate calln, that works. I get my sid and salt back.
I also create the clientKey. It works with the xml method....
So the calculation must be OK...
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,184
Threads: 958
Joined: May 2006
#244
2014-02-02, 06:04 PM
Don't go by the Swagger dox. I tried without the sid and get a 401 However your 404 still looks like syntax. Does you URL look like mine? You don't actually use ?clientKey= in the URL it is the raw key ie

/public/Util/NPVR/Client/Initialize/a81c513a5770587ed1d8c5288e18da27?sid=49f506516c704822a73447fceb4ea499

Martin
Svekke
Offline

Member

Posts: 121
Threads: 7
Joined: Oct 2012
#245
2014-02-02, 08:02 PM
That's just the purpose of the swagger information.
To test everything.... Smile

The Initialize should that be a POST? I can't send any "RequestContent" for the clientKeys ...
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,184
Threads: 958
Joined: May 2006
#246
2014-02-02, 08:20 PM
It's a GET

Martin
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,184
Threads: 958
Joined: May 2006
#247
2014-02-02, 08:30 PM
Svekke Wrote:I also create the clientKey. It works with the xml method....So the calculation must be OK...

Thinking about this while shoveling snow, UJB uses a different algorithm to create the hashed key so it is not exactly the same.

Martin
UncleJohnsBand
Offline

Posting Freak

U.S.A.
Posts: 5,643
Threads: 258
Joined: Feb 2005
#248
2014-02-02, 08:37 PM
mvallevand Wrote:Thinking about this while shoveling snow, UJB uses a different algorithm to create the hashed key so it is not exactly the same.

Martin

I am assuming it is the same method as sub uses as it is exposed via the API and the instructions in the doc explain what needs to be done. What is not the same as the XML method sub provides?

I did miss having the sid as required in the API doc for the Initialize call.

I have updated the API do and put a patch on the FTP server for that fix: newa-enhanced_Initialize_API_patch_20140202-1.zip (make sure to flush your browser cache)

The initialize is not a Post it is a Get and the client key that you generate is passed on the path....not a query string as Martin indicated with the sid being passed in as a query string. /initialize/client-generated-key?sid=xxxxxx
Intel Core i7 @ 4.00GHz Skylake 14nm
ASUSTeK COMPUTER INC. Z170-DELUXE
Windows 10 Pro x64
PVR Software: NPVR 5.1.1
SiliconDust HDHomeRun HDHR5-4US Connect Quatro 4 Channel Tuner
Roku Ultra
2 PCH A-100's
Svekke
Offline

Member

Posts: 121
Threads: 7
Joined: Oct 2012
#249
2014-02-02, 08:39 PM
mvallevand Wrote:It's a GET

Martin

I know, it's a GET. But to send some content, isn't it better to use a POST instead of the GET?
Or am i missing something in the REST methodology?
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,184
Threads: 958
Joined: May 2006
#250
2014-02-02, 09:02 PM
UncleJohnsBand Wrote:I am assuming it is the same method as sub uses as it is exposed via the API and the instructions in the doc explain what needs to be done. What is not the same as the XML method sub provides?

It's not a big difference sub's client key is a parameter called &md5= and sid is required too.

Martin
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (56): « Previous 1 … 23 24 25 26 27 … 56 Next »
Jump to page 


Possibly Related Threads…
Thread Author Replies Views Last Post
  Looking for C# UPnP Media Server code bgowland 5 7,773 2016-12-16, 08:25 PM
Last Post: mvallevand
  Media\Show Directory mvallevand 12 6,158 2014-07-02, 10:58 AM
Last Post: sub
  Media\Shows Metadata mvallevand 2 1,952 2013-05-22, 04:09 AM
Last Post: mvallevand
  Streaming media imilne 44 13,253 2012-12-14, 04:05 AM
Last Post: mvallevand
  SkyDrive Eplorer Integration Released.....also available for Mac and iPad UncleJohnsBand 0 1,490 2012-04-24, 01:06 AM
Last Post: UncleJohnsBand
  Building a list of files in media folders (npvr Music and Videos) bgowland 2 1,966 2012-02-05, 10:29 AM
Last Post: bgowland
  Windows Media Connect - Storing stuff on a Home Server psycik 3 2,778 2009-09-29, 03:47 AM
Last Post: mvallevand
  Plugin notification of stopped media mvallevand 7 2,428 2009-08-19, 11:16 PM
Last Post: mvallevand
  GBPVR Media Events KingArgyle 1 1,624 2005-03-27, 07:12 PM
Last Post: sub

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

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

Linear Mode
Threaded Mode