import 'package:forestvpn_api/api.dart';
All URIs are relative to https://api.forestvpn.com/v2
Method | HTTP request | Description |
---|---|---|
createFCMDevice | POST /notification/fcm/ | Device registration for push notification through out Firebase Cloud Messaging |
deleteFCMDevice | DELETE /notification/fcm/{registrationID}/ | Delete fcm device |
getFCMDevice | GET /notification/fcm/{registrationID}/ | Device info |
updateFCMDevice | PATCH /notification/fcm/{registrationID}/ | Update device fcm properties |
FCMDevice createFCMDevice(createFCMDeviceRequest)
Device registration for push notification through out Firebase Cloud Messaging
import 'package:forestvpn_api/api.dart';
// TODO Configure HTTP basic authorization: bearerAuth
//defaultApiClient.getAuthentication<HttpBasicAuth>('bearerAuth').username = 'YOUR_USERNAME'
//defaultApiClient.getAuthentication<HttpBasicAuth>('bearerAuth').password = 'YOUR_PASSWORD';
final api = ForestvpnApi().getFcmApi();
final CreateFCMDeviceRequest createFCMDeviceRequest = ; // CreateFCMDeviceRequest |
try {
final response = api.createFCMDevice(createFCMDeviceRequest);
print(response);
} catch on DioError (e) {
print('Exception when calling FcmApi->createFCMDevice: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
createFCMDeviceRequest | CreateFCMDeviceRequest |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
deleteFCMDevice(registrationID)
Delete fcm device
import 'package:forestvpn_api/api.dart';
// TODO Configure HTTP basic authorization: bearerAuth
//defaultApiClient.getAuthentication<HttpBasicAuth>('bearerAuth').username = 'YOUR_USERNAME'
//defaultApiClient.getAuthentication<HttpBasicAuth>('bearerAuth').password = 'YOUR_PASSWORD';
final api = ForestvpnApi().getFcmApi();
final String registrationID = registrationID_example; // String |
try {
api.deleteFCMDevice(registrationID);
} catch on DioError (e) {
print('Exception when calling FcmApi->deleteFCMDevice: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
registrationID | String |
void (empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
FCMDevice getFCMDevice(registrationID)
Device info
import 'package:forestvpn_api/api.dart';
// TODO Configure HTTP basic authorization: bearerAuth
//defaultApiClient.getAuthentication<HttpBasicAuth>('bearerAuth').username = 'YOUR_USERNAME'
//defaultApiClient.getAuthentication<HttpBasicAuth>('bearerAuth').password = 'YOUR_PASSWORD';
final api = ForestvpnApi().getFcmApi();
final String registrationID = registrationID_example; // String |
try {
final response = api.getFCMDevice(registrationID);
print(response);
} catch on DioError (e) {
print('Exception when calling FcmApi->getFCMDevice: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
registrationID | String |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
FCMDevice updateFCMDevice(registrationID, updateFCMDeviceRequest)
Update device fcm properties
import 'package:forestvpn_api/api.dart';
// TODO Configure HTTP basic authorization: bearerAuth
//defaultApiClient.getAuthentication<HttpBasicAuth>('bearerAuth').username = 'YOUR_USERNAME'
//defaultApiClient.getAuthentication<HttpBasicAuth>('bearerAuth').password = 'YOUR_PASSWORD';
final api = ForestvpnApi().getFcmApi();
final String registrationID = registrationID_example; // String |
final UpdateFCMDeviceRequest updateFCMDeviceRequest = ; // UpdateFCMDeviceRequest |
try {
final response = api.updateFCMDevice(registrationID, updateFCMDeviceRequest);
print(response);
} catch on DioError (e) {
print('Exception when calling FcmApi->updateFCMDevice: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
registrationID | String | ||
updateFCMDeviceRequest | UpdateFCMDeviceRequest |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]