This is a Java API for What.CD that provides a wrapper around the AJAX API of Gazelle. The What.CD Android App heavily utilizes this API. Please don't make more than 1 request to the site per second and don't do anything malicious or there will be consequences.
If you have any questions contact Gwindow in #what.cd-code or through Github.
Licensed under the 2-Clause BSD License, see LICENSE for full terms.
//set the site and login
MySoup.setSite("ssl.what.cd");
MySoup.login("login.php", username, password);
//create an object
User user = User.userFromId(id);
//you now have an object to work with, awesome right?
System.out.println(user); //this will print all the values that the object contains
//Most classes also have extra methods to do special stuff, like sending messages or downloading files
user.sendMessage(subject, body);
And that is a basic example of how you can use the api.
Java documentation: http://gwindow.github.com/WhatAPI/
ajax.php?action=index
The most important page, provides basic info such as passkey, authkey, and U/D/R
ajax.php?action=user&id=<User ID>
Inbox and Conversation ajax.php?action=inbox
ajax.php?action=inbox&type=viewconv&id=<Message Id>
ajax.php?action=top10&type=<Type>&limit=<Limit>
Type = torrents, tags, users.
Limit = 10,25,100; if no limit is specified defaults to 25.
ajax.php?action=usersearch&search=<Search Term>
ajax.php?action=requests&search=<Search Term>
ajax.php?action=requests&search=<Search Term>&tag=<Tags>
If no search term then latest requests will be listed.
ajax.php?action=browse&searchstr=<Search Term>
ajax.php?action=browse&searchstr=<Search Term>&taglist=<Tags>&tags_type=1
Searches also take all the advanced search parameters but there are too many to include, check Gazelle.
ajax.php?action=bookmarks&type=<Type>
Type = torrents, artists
ajax.php?action=subscriptions
ajax.php?action=forum&type=main
ajax.php?action=forum&type=viewforum&forumid=<Forum Id>
ajax.php?action=forum&type=viewthread&threadid=<Thread Id>&page=<Page>
ajax.php?action=forum&type=viewthread&threadid=<Thread Id>&postid=<Post Id>
ajax.php?action=artist&id=<Artist Id>
ajax.php?action=torrentgroup&id=<Torrent Group Id>
ajax.php?action=request&id=<Request Id>
ajax.php?action=notifications&page=<Page>
ajax.php?action=rippy&format=json