User
A list of all publicly available methods for interacting with the API.
GET
Get linked accounts Other linked accounts -/user/social/links
Query method
GEThttp://apilocal.stableproxy.com/v2/user/social/links
Code examples
JavaScript
async function getUserSocialLinks() {
const baseUrl = 'http://apilocal.stableproxy.com/v2';
const req = await fetch(baseUrl + '/user/social/links', {
method: 'GET',
headers: {
'Authorization': 'API-Token [YOUR TOKEN]',
'Content-Type': 'application/json'
}
}
);
const res = await req.json();
}Examples of answers
Success response
GET
Get providers Other linked accounts -/user/social/providers
Query method
GEThttp://apilocal.stableproxy.com/v2/user/social/providers
Code examples
JavaScript
async function getUserSocialProviders() {
const baseUrl = 'http://apilocal.stableproxy.com/v2';
const req = await fetch(baseUrl + '/user/social/providers', {
method: 'GET',
headers: {
'Content-Type': 'application/json'
}
}
);
const res = await req.json();
}Examples of answers
Success response
DELETE
Unlink account Other linked accounts -/user/social/links/{provider}
Query method
DELETEhttp://apilocal.stableproxy.com/v2/user/social/links/{provider}
Query parameters
| Identifier | Regulations | Example |
|---|---|---|
| provider | 1required | 50 |
Code examples
JavaScript
async function deleteUserSocialLinks() {
const baseUrl = 'http://apilocal.stableproxy.com/v2';
const req = await fetch(baseUrl + '/user/social/links/{provider}'
.replace("{provider}", 50), {
method: 'DELETE',
headers: {
'Authorization': 'API-Token [YOUR TOKEN]',
'Content-Type': 'application/json'
}
}
);
const res = await req.json();
}