Skip to content

Latest commit

 

History

History
113 lines (83 loc) · 3.37 KB

UserNotificationsApi.md

File metadata and controls

113 lines (83 loc) · 3.37 KB

UserNotificationsApi

All URIs are relative to http://localhost

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(clearNotificationsVM)

Use this endpoint to "clear" your notifications

Example

// Import classes:
//import org.openapitools.client.infrastructure.*
//import cloud.fastreport.model.*

val apiInstance = UserNotificationsApi()
val clearNotificationsVM : ClearNotificationsVM =  // ClearNotificationsVM | 
try {
    apiInstance.userNotificationsClearNotifications(clearNotificationsVM)
} catch (e: ClientException) {
    println("4xx response calling UserNotificationsApi#userNotificationsClearNotifications")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling UserNotificationsApi#userNotificationsClearNotifications")
    e.printStackTrace()
}

Parameters

Name Type Description Notes
clearNotificationsVM ClearNotificationsVM [optional]

Return type

null (empty response body)

Authorization

Configure ApiKey: ApiClient.username = "" ApiClient.password = "" Configure JWT: ApiClient.accessToken = ""

HTTP request headers

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

userNotificationsGetNotifications

AuditActionsVM userNotificationsGetNotifications(skip, take, subscriptionId)

Use this endpoint to recieve notifications

Example

// Import classes:
//import org.openapitools.client.infrastructure.*
//import cloud.fastreport.model.*

val apiInstance = UserNotificationsApi()
val skip : kotlin.Int = 56 // kotlin.Int | 
val take : kotlin.Int = 56 // kotlin.Int | 
val subscriptionId : kotlin.String = subscriptionId_example // kotlin.String | 
try {
    val result : AuditActionsVM = apiInstance.userNotificationsGetNotifications(skip, take, subscriptionId)
    println(result)
} catch (e: ClientException) {
    println("4xx response calling UserNotificationsApi#userNotificationsGetNotifications")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling UserNotificationsApi#userNotificationsGetNotifications")
    e.printStackTrace()
}

Parameters

Name Type Description Notes
skip kotlin.Int [optional] [default to 0]
take kotlin.Int [optional] [default to 5]
subscriptionId kotlin.String [optional] [default to ""]

Return type

AuditActionsVM

Authorization

Configure ApiKey: ApiClient.username = "" ApiClient.password = "" Configure JWT: ApiClient.accessToken = ""

HTTP request headers

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