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
| Identifier | Regulations | Example |
|---|---|---|
| id | 1required | 11 |
Code examples
JavaScript
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
Success response
DELETE
Reset Download Hash Download hash -/package/download-hash/{id}
Query method
DELETEhttp://apilocal.stableproxy.com/v2/package/download-hash/{id}
Query parameters
| Identifier | Regulations | Example |
|---|---|---|
| id | 1required | 11 |
Code examples
JavaScript
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
Success response
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
| Identifier | Regulations | Example |
|---|---|---|
| hash | 1required | null |
| format | 1required | null |
| connection | 1required | null |
Code examples
JavaScript
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();
}