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} |
void DeletePushNotification (string appId, int? scheduledPushNotificationId)
using System;
using System.Diagnostics;
using Flipdish.Api;
using Flipdish.Client;
using Flipdish.Model;
namespace Example
{
public class DeletePushNotificationExample
{
public void main()
{
// Configure OAuth2 access token for authorization: oauth2
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new PushNotificationsApi();
var appId = appId_example; // string |
var scheduledPushNotificationId = 56; // int? |
try
{
apiInstance.DeletePushNotification(appId, scheduledPushNotificationId);
}
catch (Exception e)
{
Debug.Print("Exception when calling PushNotificationsApi.DeletePushNotification: " + e.Message );
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| appId | string | ||
| scheduledPushNotificationId | 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]
RestApiPaginationResultPushNotificationResponse GetPushNotifications (string appId, int? page = null, int? limit = null)
using System;
using System.Diagnostics;
using Flipdish.Api;
using Flipdish.Client;
using Flipdish.Model;
namespace Example
{
public class GetPushNotificationsExample
{
public void main()
{
// Configure OAuth2 access token for authorization: oauth2
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new PushNotificationsApi();
var appId = appId_example; // string |
var page = 56; // int? | (optional)
var limit = 56; // int? | (optional)
try
{
RestApiPaginationResultPushNotificationResponse result = apiInstance.GetPushNotifications(appId, page, limit);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling PushNotificationsApi.GetPushNotifications: " + e.Message );
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| appId | string | ||
| page | int? | [optional] | |
| limit | int? | [optional] |
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]
RestApiResultPushNotificationResponse SchedulePushNotification (string appId, PushNotificationRequest notification)
using System;
using System.Diagnostics;
using Flipdish.Api;
using Flipdish.Client;
using Flipdish.Model;
namespace Example
{
public class SchedulePushNotificationExample
{
public void main()
{
// Configure OAuth2 access token for authorization: oauth2
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new PushNotificationsApi();
var appId = appId_example; // string |
var notification = new PushNotificationRequest(); // PushNotificationRequest |
try
{
RestApiResultPushNotificationResponse result = apiInstance.SchedulePushNotification(appId, notification);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling PushNotificationsApi.SchedulePushNotification: " + e.Message );
}
}
}
}| 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
[Back to top] [Back to API list] [Back to Model list] [Back to README]
RestApiResultPushNotificationResponse UpdatePushNotification (string appId, int? scheduledPushNotificationId, PushNotificationRequest notification)
using System;
using System.Diagnostics;
using Flipdish.Api;
using Flipdish.Client;
using Flipdish.Model;
namespace Example
{
public class UpdatePushNotificationExample
{
public void main()
{
// Configure OAuth2 access token for authorization: oauth2
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new PushNotificationsApi();
var appId = appId_example; // string |
var scheduledPushNotificationId = 56; // int? |
var notification = new PushNotificationRequest(); // PushNotificationRequest |
try
{
RestApiResultPushNotificationResponse result = apiInstance.UpdatePushNotification(appId, scheduledPushNotificationId, notification);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling PushNotificationsApi.UpdatePushNotification: " + e.Message );
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| appId | string | ||
| scheduledPushNotificationId | int? | ||
| 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
[Back to top] [Back to API list] [Back to Model list] [Back to README]