Information

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

GET

Get packages list Info Package -/package/list

Query method

GEThttp://apilocal.stableproxy.com/v2/package/list

Query parameters

IdentifierRegulationsExample
with-deletedNot necessarilynullableex-booleanfalse
searchNot necessarilynullablestring241
per-pageNot necessarilynullableinteger82
pageNot necessarilynullableinteger33
sort-byNot necessarilynullablestringapp\_validators\_ex_in_rule""
sort-orderNot necessarilynullablestringin:asc, desc"asc"

Code examples

async function getPackageList() {
   const baseUrl = 'http://apilocal.stableproxy.com/v2';
   const req = await fetch(baseUrl + '/package/list?' + Object.entries({
         "with-deleted": false,
         "search": 241,
         "per-page": 82,
         "page": 33,
         "sort-by": "",
         "sort-order": "asc"
      }).map(([key, value]) => key + "=" + value).join('&'), {
         method: 'GET',
         headers: {
            'Authorization': 'API-Token [YOUR TOKEN]',
            'Content-Type': 'application/json'
         }
      }
   );
   
   const res = await req.json();
}

Examples of answers

DELETE

Cancel non activate package Info Package -/package/cancel/{id}

Query method

DELETEhttp://apilocal.stableproxy.com/v2/package/cancel/{id}

Query parameters

IdentifierRegulationsExample
id1required33

Code examples

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

Examples of answers

GET

Get package information Same as list but fetch only one. -/package/view/{id}

Query method

GEThttp://apilocal.stableproxy.com/v2/package/view/{id}

Query parameters

IdentifierRegulationsExample
id1required3

Code examples

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

Examples of answers

GET

Statistics -/package/statistics/{id}

Query method

GEThttp://apilocal.stableproxy.com/v2/package/statistics/{id}

Code examples

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

Examples of answers