Promotion

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

GET

Get available promocodes Promo User -/promo/available

Query method

GEThttp://apilocal.stableproxy.com/v2/promo/available

Code examples

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

Examples of answers

GET

Get active promocodes Get active promocodes for user. -/promo/list

Query method

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

Code examples

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

Examples of answers