Skip to content

Latest commit

 

History

History
138 lines (95 loc) · 4.49 KB

UserNotificationsApi.md

File metadata and controls

138 lines (95 loc) · 4.49 KB

OpenAPI\Client\UserNotificationsApi

All URIs are relative to http://localhost, except if the operation defines another base path.

Method HTTP request Description
userNotificationsClearNotifications() DELETE /api/manage/v1/notifications Use this endpoint to "clear" your notifications
userNotificationsGetNotifications() GET /api/manage/v1/notifications Use this endpoint to recieve notifications

userNotificationsClearNotifications()

userNotificationsClearNotifications($clear_notifications_vm)

Use this endpoint to "clear" your notifications

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure HTTP basic authorization: ApiKey
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()
              ->setUsername('YOUR_USERNAME')
              ->setPassword('YOUR_PASSWORD');

// Configure Bearer (JWT) authorization: JWT
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');


$apiInstance = new OpenAPI\Client\Api\UserNotificationsApi(
    // 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
);
$clear_notifications_vm = new \OpenAPI\Client\cloud\fastreport\model\ClearNotificationsVM(); // \OpenAPI\Client\cloud\fastreport\model\ClearNotificationsVM | 

try {
    $apiInstance->userNotificationsClearNotifications($clear_notifications_vm);
} catch (Exception $e) {
    echo 'Exception when calling UserNotificationsApi->userNotificationsClearNotifications: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
clear_notifications_vm \OpenAPI\Client\cloud\fastreport\model\ClearNotificationsVM [optional]

Return type

void (empty response body)

Authorization

ApiKey, JWT

HTTP request headers

  • Content-Type: application/json, text/json, application/*+json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

userNotificationsGetNotifications()

userNotificationsGetNotifications($skip, $take, $subscription_id): \OpenAPI\Client\cloud\fastreport\model\AuditActionsVM

Use this endpoint to recieve notifications

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure HTTP basic authorization: ApiKey
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()
              ->setUsername('YOUR_USERNAME')
              ->setPassword('YOUR_PASSWORD');

// Configure Bearer (JWT) authorization: JWT
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');


$apiInstance = new OpenAPI\Client\Api\UserNotificationsApi(
    // 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
);
$skip = 0; // int
$take = 5; // int
$subscription_id = ''; // string

try {
    $result = $apiInstance->userNotificationsGetNotifications($skip, $take, $subscription_id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling UserNotificationsApi->userNotificationsGetNotifications: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
skip int [optional] [default to 0]
take int [optional] [default to 5]
subscription_id string [optional] [default to '']

Return type

\OpenAPI\Client\cloud\fastreport\model\AuditActionsVM

Authorization

ApiKey, JWT

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]