Please help (OAuth and xbmc!)
#1
Hi everyone,
Well I just love Asian drama, and would love to see it in XBMC. I normally just launch browser, go to a typical drama website, maximize the viewing window and watch from there.
But anyways, I decided to try writing an addon for XBMC for viki.com website (which is awesome for drama site).
Anyways, instead of scrapping the site I find out that the site actually has a decent API that provides listings, subtitles in gzip format, descriptions and direct URLs through JSON / XML queries. (See API at http://dev.viki.com/api/). Anyways, the very first thing that I should start with, according to the http://dev.viki.com/auth/, is get an application registered through OAUTH 2.0 at http://www.viki.com/applications. Unfortunately me being a newbie in development, I am having a difficult time understanding the URI part of the authentication. At the Google apps, the redirect URI is chosen and provided by google, (assuming it is a web app we are dealing with...) What about XBMC? How and what would I use for redirect URI where OAuth is used?
Anyways, could someone please help me understand this matter or at least point me to the direction where I can read and inquire info on what to do.
Thank you very much!
Reply
#2
Do you need a redirect URI with viki? I don't see it mentioned in their docs, it looks like you just curl the oauth server for the access token.

For Facebook, the redirect URI is used because authorization happens on their domain, facebook.com (necessarily in a web browser). You sign in, click "forfeit my life to facebook", and the facebook code redirects the user to the redirect URI with the access key in the fragment. To intercept the access key you need a web server. However, I read about a python program once that used a local embedded python-based webserver, and passed http://localhost as the redirect URI, and the webserver listening on localhost intercepted the access token and passed it back up to the python application.

Basically, hope that viki doesn't use a redirect URI and lets you curl the access token directly
Reply
#3
i am interested in creating a viki addon also. I played with python a little but not an expert at it.. more of bash and php scripter ... let me know if i can join
Reply

Logout Mark Read Team Forum Stats Members Help
Please help (OAuth and xbmc!)0