Is there a way to issue an HTTP PUT request in a Plex channel? HTTP.Request(url, data=values) seems to issue POST requests, but the API I’m accessing requires PUT for certain operations.
Try this:
httpResponse = HTTP.Request(myUrl, headers=MYHEADER, method=‘PUT’)
Thanks, that seems to work!
I’ve been using the API documentation that dane22 provided in this thread: https://forums.plex.tv/discussion/172923/plugin-development-documentation#latest
That doesn’t mention the “method” parameter. Is there a newer version of the documentation?
Sadly no, but the HTTP methode is build on top of urllib2, AFAIK
The Missing from the Official Plugin Documentation thread may also be helpful.
The Framework link there is for the old site, so it no longer works, but the “here” link for the missing documentation document still works. It does not include the method, but there may be other helpful notes there.