Package

A list of all publicly available methods for interacting with the API.

GET

Get package download hash Download hash -/package/download-hash/{id}

Query method

GEThttp://apilocal.stableproxy.com/v2/package/download-hash/{id}

Query parameters

IdentifierRegulationsExample
id1required11

Code examples

async function getPackageDownloadHash() {
   const baseUrl = 'http://apilocal.stableproxy.com/v2';
   const req = await fetch(baseUrl + '/package/download-hash/{id}'
      .replace("{id}", 11), {
         method: 'GET',
         headers: {
            'Authorization': 'API-Token [YOUR TOKEN]',
            'Content-Type': 'application/json'
         }
      }
   );
   
   const res = await req.json();
}

Examples of answers

DELETE

Reset Download Hash Download hash -/package/download-hash/{id}

Query method

DELETEhttp://apilocal.stableproxy.com/v2/package/download-hash/{id}

Query parameters

IdentifierRegulationsExample
id1required11

Code examples

async function deletePackageDownloadHash() {
   const baseUrl = 'http://apilocal.stableproxy.com/v2';
   const req = await fetch(baseUrl + '/package/download-hash/{id}'
      .replace("{id}", 11), {
         method: 'DELETE',
         headers: {
            'Authorization': 'API-Token [YOUR TOKEN]',
            'Content-Type': 'application/json'
         }
      }
   );
   
   const res = await req.json();
}

Examples of answers

GET

Get package download Download -/package/download/{hash}/{format}/{connection}/{nopwd?}

Query method

GEThttp://apilocal.stableproxy.com/v2/package/download/{hash}/{format}/{connection}/{nopwd?}

Query parameters

IdentifierRegulationsExample
hash1requirednull
format1requirednull
connection1requirednull

Code examples

async function getPackageDownload{nopwd?}() {
   const baseUrl = 'http://apilocal.stableproxy.com/v2';
   const req = await fetch(baseUrl + '/package/download/{hash}/{format}/{connection}/{nopwd?}'
      .replace("{hash}", null)
      .replace("{format}", null)
      .replace("{connection}", null), {
         method: 'GET',
         headers: {
            'Content-Type': 'application/json'
         }
      }
   );
   
   const res = await req.json();
}

Examples of answers