API - nosmokingbandit/watcher GitHub Wiki
Watcher supplies a simple api for submitting and retrieving information.
The api can be accessed at:
http://host:port/api
Or, if using custom webroot:
http://host:port/watcher/api
All api requests will include key: value of response: true/false to indicate success or failure of the intended action.
{'response': 'true'}
apikey
All api requests must include your api key.
/api?apikey=abcdef123456789
MODE
All api requests must include a mode.
liststatus
/api?mode=liststatus
Returns a list of movies in the user's Status page. Includes movie status, quality settings, and media information such as rating, plot, and imdb id.
/api?mode=liststatus&imdbid=tt1234567
Return the status of a single movie.
addmovie
/api?mode=addmovie&imdbid=tt1234567
Adds movie to the user's wanted list. Adds with default quality options as defined in Settings/Quality. Returns success or failure message.
removemovie
/api?mode=removemovie&imdbid=tt1234567
Removes movie from the user's wanted list. Returns success or failure message.
version
Request
/api?mode=version
Response
{
"version": "a1353128cb53e58a157734b1a81b1a48a79ced63",
"response": "true"
}
Returns the current version of Watcher.