All URIs are relative to https://api.flipdish.co
| Method | HTTP request | Description |
|---|---|---|
| deletePushNotification | DELETE /api/v1.0/{appId}/pushnotifications/{scheduledPushNotificationId} | |
| getPushNotifications | GET /api/v1.0/{appId}/pushnotifications | |
| schedulePushNotification | POST /api/v1.0/{appId}/pushnotifications | |
| updatePushNotification | POST /api/v1.0/{appId}/pushnotifications/{scheduledPushNotificationId} |
deletePushNotification(appId, scheduledPushNotificationId)
import Flipdish from '@flipdish/api-client-javascript';
let defaultClient = Flipdish.ApiClient.instance;
// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new Flipdish.PushNotificationsApi();
let appId = "appId_example"; // String |
let scheduledPushNotificationId = 56; // Number |
apiInstance.deletePushNotification(appId, scheduledPushNotificationId, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| appId | String | ||
| scheduledPushNotificationId | Number |
null (empty response body)
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml
RestApiPaginationResultPushNotificationResponse getPushNotifications(appId, opts)
import Flipdish from '@flipdish/api-client-javascript';
let defaultClient = Flipdish.ApiClient.instance;
// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new Flipdish.PushNotificationsApi();
let appId = "appId_example"; // String |
let opts = {
'page': 56, // Number |
'limit': 56 // Number |
};
apiInstance.getPushNotifications(appId, opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| appId | String | ||
| page | Number | [optional] | |
| limit | Number | [optional] |
RestApiPaginationResultPushNotificationResponse
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml
RestApiResultPushNotificationResponse schedulePushNotification(appId, notification)
import Flipdish from '@flipdish/api-client-javascript';
let defaultClient = Flipdish.ApiClient.instance;
// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new Flipdish.PushNotificationsApi();
let appId = "appId_example"; // String |
let notification = new Flipdish.PushNotificationRequest(); // PushNotificationRequest |
apiInstance.schedulePushNotification(appId, notification, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| appId | String | ||
| notification | PushNotificationRequest |
RestApiResultPushNotificationResponse
- Content-Type: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
- Accept: application/json, text/json, application/xml, text/xml
RestApiResultPushNotificationResponse updatePushNotification(appId, scheduledPushNotificationId, notification)
import Flipdish from '@flipdish/api-client-javascript';
let defaultClient = Flipdish.ApiClient.instance;
// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new Flipdish.PushNotificationsApi();
let appId = "appId_example"; // String |
let scheduledPushNotificationId = 56; // Number |
let notification = new Flipdish.PushNotificationRequest(); // PushNotificationRequest |
apiInstance.updatePushNotification(appId, scheduledPushNotificationId, notification, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| appId | String | ||
| scheduledPushNotificationId | Number | ||
| notification | PushNotificationRequest |
RestApiResultPushNotificationResponse
- Content-Type: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
- Accept: application/json, text/json, application/xml, text/xml