All URIs are relative to https://roketo-test-api.herokuapp.com
Method | HTTP request | Description |
---|---|---|
findAll | GET /notifications | |
markAllRead | POST /notifications/readAll | |
unsubscribe | GET /notifications/{accountId}/unsubscribe/{jwt} |
Array findAll()
import { } from '@roketo/api-client';
import * as fs from 'fs';
const configuration = .createConfiguration();
const apiInstance = new .NotificationsApi(configuration);
let body:any = {};
apiInstance.findAll(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
This endpoint does not need any parameter.
Array
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void markAllRead()
import { } from '@roketo/api-client';
import * as fs from 'fs';
const configuration = .createConfiguration();
const apiInstance = new .NotificationsApi(configuration);
let body:any = {};
apiInstance.markAllRead(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
This endpoint does not need any parameter.
void
- Content-Type: Not defined
- Accept: Not defined
Status code | Description | Response headers |
---|---|---|
204 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void unsubscribe()
import { } from '@roketo/api-client';
import * as fs from 'fs';
const configuration = .createConfiguration();
const apiInstance = new .NotificationsApi(configuration);
let body:.NotificationsApiUnsubscribeRequest = {
// string
accountId: "accountId_example",
// string
jwt: "jwt_example",
};
apiInstance.unsubscribe(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
accountId | [string] | defaults to undefined | |
jwt | [string] | defaults to undefined |
void
- Content-Type: Not defined
- Accept: Not defined
Status code | Description | Response headers |
---|---|---|
200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]