Delete
Lista wszystkich publicznie dostępnych metod interakcji z API.
DELETE
Package delete -/package/delete/{id}
Metoda zapytania
DELETEhttps://api.stableproxy.com/v2/package/delete/{id}
Parametry zapytania
| Identyfikator | Regulamin | Przykład |
|---|---|---|
| name | requiredstring | "hackett.theodore" |
| id | 1required | 49 |
Przykłady kodu
JavaScript
async function deletePackageDelete() {
const baseUrl = 'https://api.stableproxy.com/v2';
const req = await fetch(baseUrl + '/package/delete/{id}'
.replace("{id}", 49), {
method: 'DELETE',
headers: {
'Authorization': 'API-Token [YOUR TOKEN]',
'Content-Type': 'application/json'
},
body: JSON.stringify({
"name": "hackett.theodore"
}),
}
);
const res = await req.json();
}