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
UncleJohnsBand
Offline

Posting Freak

U.S.A.
Posts: 5,643
Threads: 258
Joined: Feb 2005
#251
2014-02-02, 09:05 PM
mvallevand Wrote:It's not a big difference sub's client key is a parameter called &md5= and sid is required too.

Martin

Ok... so it is just a parameter name thing..... then were ok....
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
UncleJohnsBand
Offline

Posting Freak

U.S.A.
Posts: 5,643
Threads: 258
Joined: Feb 2005
#252
2014-02-02, 09:06 PM
Svekke Wrote: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?

I'll change it to a post on the next build.... you still shouldn't be having a problem using the get.
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
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,186
Threads: 958
Joined: May 2006
#253
2014-02-02, 09:08 PM
Frankly I am getting fed up with all these unnecessary changes to the JSON interface.

Martin
UncleJohnsBand
Offline

Posting Freak

U.S.A.
Posts: 5,643
Threads: 258
Joined: Feb 2005
#254
2014-02-02, 09:14 PM
mvallevand Wrote:Frankly I am getting fed up with all these unnecessary changes to the JSON interface.

Martin

I know..... but what Svekke pointed out is valid. Since this is a new API for NEWA and there are standards for REST based services I should be coding to the standard as much as possible.
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
#255
2014-02-02, 10:10 PM
UncleJohnsBand Wrote:I know..... but what Svekke pointed out is valid. Since this is a new API for NEWA and there are standards for REST based services I should be coding to the standard as much as possible.

@Mvallevand: normally you only use a GET when you get some information.
You use a POST if you need to create something. Maybe this one is a tricky one. You "create" a session ....
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,186
Threads: 958
Joined: May 2006
#256
2014-02-02, 10:13 PM
It's not arbitrary data, the MD5 hash makes it url safe it's been working fine for sub an I can't imagine sub accepting a suggestion to change it to a POST. In fact earlier in this thread lukemb3 wanted you to change all your POSTs to GETs Its' not a big deal, I will just got back to using sub's call to login the sid is interchangeable.

Martin
Svekke
Offline

Member

Posts: 121
Threads: 7
Joined: Oct 2012
#257
2014-02-02, 10:20 PM
mvallevand Wrote:It's not arbitrary data, the MD5 hash makes it url safe it's been working fine for sub an I can't imagine sub accepting a suggestion to change it to a POST. In fact earlier in this thread lukemb3 wanted you to change all your POSTs to GETs Its' not a big deal, I will just got back to using sub's call to login the sid is interchangeable.

Martin

I will talk with Luke about that. Ot will be something for tomorrow. It's already late here. Smile
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,186
Threads: 958
Joined: May 2006
#258
2014-02-02, 10:21 PM
Svekke Wrote:@Mvallevand: normally you only use a GET when you get some information.
You use a POST if you need to create something. Maybe this one is a tricky one. You "create" a session ....

Using your logic the Instantiate should be a POST then.

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,807
Threads: 769
Joined: Nov 2003
#259
2014-02-02, 11:34 PM
mvallevand Wrote:It's not arbitrary data, the MD5 hash makes it url safe it's been working fine for sub an I can't imagine sub accepting a suggestion to change it to a POST.
I wouldn't need to change anything. UJB is providing his own json interface to these, and calling my API classes directly. It doesn't change anything for me if his interface accetps GET or POST or accepts either.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,186
Threads: 958
Joined: May 2006
#260
2014-02-03, 12:27 AM
Sub my point was your &md5= on the GET is not bad form just because someone thinks of it is data and you'd have need a better argument then was given to UJB before changing it.

Martin
« Next Oldest | Next Newest »

Users browsing this thread: 2 Guest(s)

Pages (56): « Previous 1 … 24 25 26 27 28 … 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,165 2014-07-02, 10:58 AM
Last Post: sub
  Media\Shows Metadata mvallevand 2 1,956 2013-05-22, 04:09 AM
Last Post: mvallevand
  Streaming media imilne 44 13,258 2012-12-14, 04:05 AM
Last Post: mvallevand
  SkyDrive Eplorer Integration Released.....also available for Mac and iPad UncleJohnsBand 0 1,493 2012-04-24, 01:06 AM
Last Post: UncleJohnsBand
  Building a list of files in media folders (npvr Music and Videos) bgowland 2 1,967 2012-02-05, 10:29 AM
Last Post: bgowland
  Windows Media Connect - Storing stuff on a Home Server psycik 3 2,781 2009-09-29, 03:47 AM
Last Post: mvallevand
  Plugin notification of stopped media mvallevand 7 2,429 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