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
#261
2014-02-03, 02:30 AM
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

Indeed the sid's between the two should be interchangeable since they are managed by NPVR....they should be one in the same.

Changing from a post to a get from the client should be very simple.... you aren't passing in any objects with the post and the API call format stays the same....all on the url.

As for Instantiate..... could go either way.... I look at it as you are getting the system keys to use the API externally.... therefore it would stay a 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
UncleJohnsBand
Offline

Posting Freak

U.S.A.
Posts: 5,643
Threads: 258
Joined: Feb 2005
#262
2014-02-03, 02:42 AM
sub Wrote: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 Wrote: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

You are absolutely correct. for sub's xml call which is a proprietary API a Get is just fine.

Since NEWA is using a standard RESTful API implementation using JSON objects the recognized standard would be to use Post when pushing data into the API.

I will admit.... I am not an expert on the standards.....thus I have to be open to tweaks that come across as not aligning to the standard.

And I think I did change some Post's to Gets per request....

Ideally... I would like the NEWA RESTful API to align to REST standards so that using it isn't confusing to those developers who have been living in this space longer than I have.... It's all learning for me. Smile
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
Offline

Posting Freak

Ontario Canada
Posts: 53,184
Threads: 958
Joined: May 2006
#263
2014-02-03, 02:46 AM
The change is simple, confirming the sid works and that were no security leaks in my 30+ calls over the Internet took me several evenings.


Martin
UncleJohnsBand
Offline

Posting Freak

U.S.A.
Posts: 5,643
Threads: 258
Joined: Feb 2005
#264
2014-02-03, 02:51 AM
mvallevand Wrote:The change is simple, confirming the sid works and that were no security leaks in my 30+ calls over the Internet took me several evenings.


Martin

Ohhhh....You don't have to retest those 30+ calls do you? This is just a change to one API call that you only need to call once before you make those other calls.....right?
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
Offline

Posting Freak

Ontario Canada
Posts: 53,184
Threads: 958
Joined: May 2006
#265
2014-02-03, 04:01 AM
Yes, because it is internet I want to be thorough. When you guy iron out what you want I'll rethink using the changes to JSON

The really odd thing here is MB3 doesn't even need the sid, it will be backend to backend on the local LAN.

Martin
Svekke
Offline

Member

Posts: 121
Threads: 7
Joined: Oct 2012
#266
2014-02-03, 08:45 PM
You can implement it as a POST or a GET. It's al up to you. Smile
I asked Luke his opion. And we just implement it as you provide it to us. So you can do what you went. Smile

For MB3 it's indeed the backend on the local LAN. Normally it doesn't run on the WAN...
You can connect with many clients to the MB3 server. The clients could be on the WAN ....
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,184
Threads: 958
Joined: May 2006
#267
2014-02-03, 09:26 PM
If the clients are on the WAN, I'd expect they still connect to MB3 instead of just proxying to NEWA right? To me the big values to NextPVR users for MB3 will be the MP4 transcoded streaming that will be available from your client.

Martin
Svekke
Offline

Member

Posts: 121
Threads: 7
Joined: Oct 2012
#268
2014-02-03, 10:04 PM
Indeed, the clients always connect to our MB3 Server...
NextPvr communicate with the MB3 server only .
UncleJohnsBand
Offline

Posting Freak

U.S.A.
Posts: 5,643
Threads: 258
Joined: Feb 2005
#269
2014-02-04, 12:10 AM
Svekke Wrote:You can implement it as a POST or a GET. It's al up to you. Smile
I asked Luke his opion. And we just implement it as you provide it to us. So you can do what you went. Smile

For MB3 it's indeed the backend on the local LAN. Normally it doesn't run on the WAN...
You can connect with many clients to the MB3 server. The clients could be on the WAN ....

I will leave as a Get then.... that way no one needs to do anything.
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
#270
2014-02-04, 07:56 PM (This post was last modified: 2014-02-04, 09:13 PM by Svekke.)
Is it true when i say that i don't need the sid value? Or am i wrong?
Or is it better to add to every method?
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (56): « Previous 1 … 25 26 27 28 29 … 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