-
Notifications
You must be signed in to change notification settings - Fork 0
API endpoints
Below are listed the endpoints for the internal API. Speak to Tom to obtain an API key.
Endpoint - https://www.tdpain.net/nexusapi/create/
Method - POST
Returns - HTTP 201 on success
Parameters:
-
mod_id- required and can be a number with a decimal point -
mod_name- required. mod_descmod_version-
file_id- must be integer if specified in request -
size_kb- must be integer if specified in request category_name-
adult_content- must be Boolean if specified in request -
content_preview- must be valid JSON if specified in request external_virus_scan_url-
uploaded_time- must be an integer timestamp if specified in request -
key- required. Internal API authentication key.
If the mod ID exists and category_name for that mod is set to one of the following, the row will be updated with the values provided. Otherwise, it will fail.
NOT FOUNDHIDDEN MODNO FILESNOT PUBLISHEDUNDER MODERATIONNON
Endpoint - https://www.tdpain.net/nexusapi/update/
Method - POST
Returns - HTTP 200 on success, HTTP 404 if row not found, HTTP 400 if category_name is invalid
Parameters:
-
mod_id- required and can be a number with a decimal point mod_namemod_descmod_version-
file_id- must be integer if specified in request -
size_kb- must be integer if specified in request category_name-
adult_content- must be Boolean if specified in request -
content_preview- must be valid JSON if specified in request external_virus_scan_url-
uploaded_time- must be an integer timestamp if specified in request -
key- required. Internal API authentication key.
Endpoint - https://www.tdpain.net/nexusapi/select/
Method - POST
Returns - HTTP 200 on success, HTTP 404 if ID not found
Parameters:
-
mod_id- required and can be a number with a decimal point -
key- required. Internal API authentication key.
Endpoint - https://www.tdpain.net/nexusapi/dl/progress/
Method - POST
Returns - HTTP 200 on success, HTTP 404 if no entries exist with the specified mod_id
Parameters:
-
key- required. Internal API authentication key. -
mod_id- required and can be a number with a decimal point -
state- required. Boolean to indicate the download state. True if download in progress, true if completed.
Endpoint - https://www.tdpain.net/nexusapi/dl/complete/
Method - POST
Returns - HTTP 200 on success, HTTP 404 if no entries exist with the specified mod_id
Parameters:
-
key- required. Internal API authentication key. -
mod_id- required and can be a number with a decimal point -
state- required. Boolean to indicate the download state. True if completed.
If a parameter should be NULL, it can be one of the following:
- not specified in the request
- "null" in any capitalisation
If a parameter should be a Boolean, it can be one of the following:
- "1"
- "0"
- "true" in any capitalisation
- "false" in any capitalisation