Other linked accounts
A list of all publicly available methods for interacting with the API.
GET
Get linked accounts -/user/social/links
Query method
GEThttp://apilocal.stableproxy.com/v2/user/social/links
Code examples
JavaScript
1async function getUserSocialLinks() {
2 const baseUrl = 'http://apilocal.stableproxy.com/v2';
3 const req = await fetch(baseUrl + '/user/social/links', {
4 method: 'GET',
5 headers: {
6 'Authorization': 'API-Token [YOUR TOKEN]',
7 'Content-Type': 'application/json'
8 }
9 }
10 );
11
12 const res = await req.json();
13}
Examples of answers
Success response
GET
Get providers -/user/social/providers
Query method
GEThttp://apilocal.stableproxy.com/v2/user/social/providers
Code examples
JavaScript
1async function getUserSocialProviders() {
2 const baseUrl = 'http://apilocal.stableproxy.com/v2';
3 const req = await fetch(baseUrl + '/user/social/providers', {
4 method: 'GET',
5 headers: {
6 'Content-Type': 'application/json'
7 }
8 }
9 );
10
11 const res = await req.json();
12}
Examples of answers
Success response
DELETE
Unlink account -/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
1async function deleteUserSocialLinks() {
2 const baseUrl = 'http://apilocal.stableproxy.com/v2';
3 const req = await fetch(baseUrl + '/user/social/links/{provider}'
4 .replace("{provider}", 50), {
5 method: 'DELETE',
6 headers: {
7 'Authorization': 'API-Token [YOUR TOKEN]',
8 'Content-Type': 'application/json'
9 }
10 }
11 );
12
13 const res = await req.json();
14}