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($app_id, $scheduled_push_notification_id)
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: oauth2
$config = Flipdish\\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Flipdish\\Client\Api\PushNotificationsApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$app_id = "app_id_example"; // string |
$scheduled_push_notification_id = 56; // int |
try {
$apiInstance->deletePushNotification($app_id, $scheduled_push_notification_id);
} catch (Exception $e) {
echo 'Exception when calling PushNotificationsApi->deletePushNotification: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| app_id | string | ||
| scheduled_push_notification_id | int |
void (empty response body)
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Flipdish\Client\Models\RestApiPaginationResultPushNotificationResponse getPushNotifications($app_id, $page, $limit)
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: oauth2
$config = Flipdish\\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Flipdish\\Client\Api\PushNotificationsApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$app_id = "app_id_example"; // string |
$page = 56; // int |
$limit = 56; // int |
try {
$result = $apiInstance->getPushNotifications($app_id, $page, $limit);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling PushNotificationsApi->getPushNotifications: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| app_id | string | ||
| page | int | [optional] | |
| limit | int | [optional] |
\Flipdish\Client\Models\RestApiPaginationResultPushNotificationResponse
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Flipdish\Client\Models\RestApiResultPushNotificationResponse schedulePushNotification($app_id, $notification)
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: oauth2
$config = Flipdish\\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Flipdish\\Client\Api\PushNotificationsApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$app_id = "app_id_example"; // string |
$notification = new \Flipdish\\Client\Models\PushNotificationRequest(); // \Flipdish\\Client\Models\PushNotificationRequest |
try {
$result = $apiInstance->schedulePushNotification($app_id, $notification);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling PushNotificationsApi->schedulePushNotification: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| app_id | string | ||
| notification | \Flipdish\Client\Models\PushNotificationRequest |
\Flipdish\Client\Models\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
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Flipdish\Client\Models\RestApiResultPushNotificationResponse updatePushNotification($app_id, $scheduled_push_notification_id, $notification)
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: oauth2
$config = Flipdish\\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Flipdish\\Client\Api\PushNotificationsApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$app_id = "app_id_example"; // string |
$scheduled_push_notification_id = 56; // int |
$notification = new \Flipdish\\Client\Models\PushNotificationRequest(); // \Flipdish\\Client\Models\PushNotificationRequest |
try {
$result = $apiInstance->updatePushNotification($app_id, $scheduled_push_notification_id, $notification);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling PushNotificationsApi->updatePushNotification: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| app_id | string | ||
| scheduled_push_notification_id | int | ||
| notification | \Flipdish\Client\Models\PushNotificationRequest |
\Flipdish\Client\Models\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
[Back to top] [Back to API list] [Back to Model list] [Back to README]