Jump to content

How to add additional web api?


hello_man

Recommended Posts

Posted

Hey Guys,

For my app TorrentBuddy (http://ashterisk.wordpress.com/torrent-buddy-for-windows-phone-7/), I want to add some additional web api in utorrent. Is it possible using some addon or something?

Basically I want to support ability to call some addition command using http GET and add that additional functionality to utorrent Web API. That way if a user want to have this functionality, they can install this additional addon.

thanks,

Posted

No, not unless you write some external application that wraps around the WebUI backend, passing regular requests to the backend, and handling custom requests on its own.

Posted

Not as far as I know. I don't see how this would be possible unless you have access to the µTorrent source code, or some plugin system that the devs have explicitly rejected in the past.

Posted

Thanks. How does the utorrent app model works. I was just checking out video and it seems it is kind of websites which gets hosted in the utorrent client. Can this application listen for incoming requests?

Posted

I'm not sure what you mean. The WebUI backend listens for HTTP connections as any web server might, and responds to special requests as described by the API docs. This backend server is simply built into the µTorrent core.

Posted

Thanks Ultima. I read a little bit more and now understand what you mean.

Let me ask few different questions -

1. I see many people have written their own webUI (User interface to access thru browser from other machines). It seems it generally follow the path http://ip:port/gui/abc where abc could be the additional/new UI/webpages. Can I do somethign similar and may be add new files which when user request using http, I would be able to get data from querystring and do something.

If the above is possible, which I assume should be, the following questions are applicable -

1. whatever data I get thru one of these additional webpage requests,, can I persist that (may be in session?)? it would be some sort of strings.

2. Will I be able to periodically check for the torrent status and make a web post call?

I am looking to see how I can get some url from clinet and then at regular interval make a post call for notifications.

I am totally new in python and that's what it seems all these code are written in. That;s making it harder for me to understand it :). Hope you can help.

thanks

Posted

All files served from µTorrent's backend HTTP server are static, besides the /gui/?... requests and /gui/token.html. You can request from /gui/?... as usual for periodic data.

And I'm really not certain what you mean when you say that most of the existing code is written in Python. Only a few of the community WebUI projects use Python.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...