Notifications
A list of all publicly available methods for interacting with the API.
GET
Get notifications -/user/notifications
Query method
GEThttp://apilocal.stableproxy.com/v2/user/notifications
Query parameters
Identifier | Regulations | Example |
---|---|---|
mark-as-readNot necessarily | nullableex-boolean | false |
searchNot necessarily | nullablestring | 191 |
per-pageNot necessarily | nullableinteger | 13 |
pageNot necessarily | nullableinteger | 17 |
sort-byNot necessarily | nullablestringapp\_validators\_ex_in_rule | "" |
sort-orderNot necessarily | nullablestringin:asc, desc | "asc" |
Code examples
JavaScript
1async function getUserNotifications() {
2 const baseUrl = 'http://apilocal.stableproxy.com/v2';
3 const req = await fetch(baseUrl + '/user/notifications?' + Object.entries({
4 "mark-as-read": false,
5 "search": 191,
6 "per-page": 13,
7 "page": 17,
8 "sort-by": "",
9 "sort-order": "asc"
10 }).map(([key, value]) => key + "=" + value).join('&'), {
11 method: 'GET',
12 headers: {
13 'Authorization': 'API-Token [YOUR TOKEN]',
14 'Content-Type': 'application/json'
15 }
16 }
17 );
18
19 const res = await req.json();
20}