import 'package:forestvpn_api/api.dart';
All URIs are relative to https://api.forestvpn.com/v2
Method | HTTP request | Description |
---|---|---|
createAdUnitRequestLog | POST /ads/request-logs/ | Create ad unit request log |
listAdPlacements | GET /ads/placements/ | Get ad placement list |
CreateAdUnitRequestLogRequest createAdUnitRequestLog(createAdUnitRequestLogRequest)
Create ad unit request log
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().getAdsApi();
final CreateAdUnitRequestLogRequest createAdUnitRequestLogRequest = ; // CreateAdUnitRequestLogRequest |
try {
final response = api.createAdUnitRequestLog(createAdUnitRequestLogRequest);
print(response);
} catch on DioError (e) {
print('Exception when calling AdsApi->createAdUnitRequestLog: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
createAdUnitRequestLogRequest | CreateAdUnitRequestLogRequest | [optional] |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
BuiltList listAdPlacements()
Get ad placement list
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().getAdsApi();
try {
final response = api.listAdPlacements();
print(response);
} catch on DioError (e) {
print('Exception when calling AdsApi->listAdPlacements: $e\n');
}
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]