Adding new AJAX end point: user_torrents. This allows the retrieval of the torrents and primary artists for the torrents a user is seeding from one of the four types: seeding, leeching, uploaded, snatched. Results are ordered starting with most-recent first. This replicates the data available from torrents.php with a type and userid specified.
The end point properly handles paranoia settings for non-logged in users.
Required variables:
userid: the user to retrieve torrent information for
type: seeding, leeching, uploaded, snatched
Adding new AJAX end point:
user_torrents
. This allows the retrieval of the torrents and primary artists for the torrents a user is seeding from one of the four types: seeding, leeching, uploaded, snatched. Results are ordered starting with most-recent first. This replicates the data available fromtorrents.php
with a type and userid specified.The end point properly handles paranoia settings for non-logged in users.
Required variables:
userid
: the user to retrieve torrent information fortype
: seeding, leeching, uploaded, snatchedOptional
limit
,offset
An example request and response:
// https://what.cd/ajax.php?action=user_torrents&userid=2&type=seeding&limit=3&offset=1