All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
subscriptionInvitesAcceptInvite | GET /api/manage/v1/Subscriptions/{subscriptionId}/invite/{accessToken}/accept | Add a user to the subscription using invite, the added users will be displayed in the list of users of the subscription, and these users will also have an active subscription. |
subscriptionInvitesCreateInvite | POST /api/manage/v1/Subscriptions/{subscriptionId}/invite | Create invite to subscription |
subscriptionInvitesDeleteInvite | DELETE /api/manage/v1/Subscriptions/{subscriptionId}/invite/{accesstoken} | Delete invite with specified token |
subscriptionInvitesGetInvites | GET /api/manage/v1/Subscriptions/{subscriptionId}/invites | Get list of invites in a subscription, the added users will be displayed in the list of users of the subscription, and these users will also have an active subscription. |
subscriptionInvitesAcceptInvite(subscriptionId, accessToken)
Add a user to the subscription using invite, the added users will be displayed in the list of users of the subscription, and these users will also have an active subscription.
// Import classes:
//import org.openapitools.client.infrastructure.*
//import cloud.fastreport.model.*
val apiInstance = SubscriptionInvitesApi()
val subscriptionId : kotlin.String = subscriptionId_example // kotlin.String | Idenitifier of subscription
val accessToken : kotlin.String = accessToken_example // kotlin.String | access token of the subscription
try {
apiInstance.subscriptionInvitesAcceptInvite(subscriptionId, accessToken)
} catch (e: ClientException) {
println("4xx response calling SubscriptionInvitesApi#subscriptionInvitesAcceptInvite")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling SubscriptionInvitesApi#subscriptionInvitesAcceptInvite")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
subscriptionId | kotlin.String | Idenitifier of subscription | |
accessToken | kotlin.String | access token of the subscription |
null (empty response body)
Configure ApiKey: ApiClient.username = "" ApiClient.password = "" Configure JWT: ApiClient.accessToken = ""
- Content-Type: Not defined
- Accept: application/json
SubscriptionInviteVM subscriptionInvitesCreateInvite(subscriptionId, createSubscriptionInviteVM)
Create invite to subscription
// Import classes:
//import org.openapitools.client.infrastructure.*
//import cloud.fastreport.model.*
val apiInstance = SubscriptionInvitesApi()
val subscriptionId : kotlin.String = subscriptionId_example // kotlin.String | id
val createSubscriptionInviteVM : CreateSubscriptionInviteVM = // CreateSubscriptionInviteVM | create VM
try {
val result : SubscriptionInviteVM = apiInstance.subscriptionInvitesCreateInvite(subscriptionId, createSubscriptionInviteVM)
println(result)
} catch (e: ClientException) {
println("4xx response calling SubscriptionInvitesApi#subscriptionInvitesCreateInvite")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling SubscriptionInvitesApi#subscriptionInvitesCreateInvite")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
subscriptionId | kotlin.String | id | |
createSubscriptionInviteVM | CreateSubscriptionInviteVM | create VM | [optional] |
Configure ApiKey: ApiClient.username = "" ApiClient.password = "" Configure JWT: ApiClient.accessToken = ""
- Content-Type: application/json
- Accept: application/json
subscriptionInvitesDeleteInvite(subscriptionId, accesstoken)
Delete invite with specified token
// Import classes:
//import org.openapitools.client.infrastructure.*
//import cloud.fastreport.model.*
val apiInstance = SubscriptionInvitesApi()
val subscriptionId : kotlin.String = subscriptionId_example // kotlin.String | id
val accesstoken : kotlin.String = accesstoken_example // kotlin.String | invite's token
try {
apiInstance.subscriptionInvitesDeleteInvite(subscriptionId, accesstoken)
} catch (e: ClientException) {
println("4xx response calling SubscriptionInvitesApi#subscriptionInvitesDeleteInvite")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling SubscriptionInvitesApi#subscriptionInvitesDeleteInvite")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
subscriptionId | kotlin.String | id | |
accesstoken | kotlin.String | invite's token |
null (empty response body)
Configure ApiKey: ApiClient.username = "" ApiClient.password = "" Configure JWT: ApiClient.accessToken = ""
- Content-Type: Not defined
- Accept: application/json
SubscriptionInvitesVM subscriptionInvitesGetInvites(subscriptionId)
Get list of invites in a subscription, the added users will be displayed in the list of users of the subscription, and these users will also have an active subscription.
// Import classes:
//import org.openapitools.client.infrastructure.*
//import cloud.fastreport.model.*
val apiInstance = SubscriptionInvitesApi()
val subscriptionId : kotlin.String = subscriptionId_example // kotlin.String | Idenitifier of subscription
try {
val result : SubscriptionInvitesVM = apiInstance.subscriptionInvitesGetInvites(subscriptionId)
println(result)
} catch (e: ClientException) {
println("4xx response calling SubscriptionInvitesApi#subscriptionInvitesGetInvites")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling SubscriptionInvitesApi#subscriptionInvitesGetInvites")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
subscriptionId | kotlin.String | Idenitifier of subscription |
Configure ApiKey: ApiClient.username = "" ApiClient.password = "" Configure JWT: ApiClient.accessToken = ""
- Content-Type: Not defined
- Accept: application/json