All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
subscriptionGroupsCountGroupsAsync | GET /api/manage/v1/Subscriptions/{subscriptionId}/count | Returns a number of groups in subscription |
subscriptionGroupsGetGroupsList | GET /api/manage/v1/Subscriptions/{subscriptionId}/groups | returns groups of the subscription or subscription user |
Number subscriptionGroupsCountGroupsAsync(subscriptionId)
Returns a number of groups in subscription
import FastreportCloudSdk from 'fastreport-cloud-sdk';
let defaultClient = FastreportCloudSdk.ApiClient.instance;
// Configure HTTP basic authorization: ApiKey
let ApiKey = defaultClient.authentications['ApiKey'];
ApiKey.username = 'YOUR USERNAME';
ApiKey.password = 'YOUR PASSWORD';
// Configure Bearer (JWT) access token for authorization: JWT
let JWT = defaultClient.authentications['JWT'];
JWT.accessToken = "YOUR ACCESS TOKEN"
let apiInstance = new FastreportCloudSdk.SubscriptionGroupsApi();
let subscriptionId = "subscriptionId_example"; // String | subscripiton id
apiInstance.subscriptionGroupsCountGroupsAsync(subscriptionId).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
subscriptionId | String | subscripiton id |
Number
- Content-Type: Not defined
- Accept: application/json
GroupsVM subscriptionGroupsGetGroupsList(subscriptionId, opts)
returns groups of the subscription or subscription user
import FastreportCloudSdk from 'fastreport-cloud-sdk';
let defaultClient = FastreportCloudSdk.ApiClient.instance;
// Configure HTTP basic authorization: ApiKey
let ApiKey = defaultClient.authentications['ApiKey'];
ApiKey.username = 'YOUR USERNAME';
ApiKey.password = 'YOUR PASSWORD';
// Configure Bearer (JWT) access token for authorization: JWT
let JWT = defaultClient.authentications['JWT'];
JWT.accessToken = "YOUR ACCESS TOKEN"
let apiInstance = new FastreportCloudSdk.SubscriptionGroupsApi();
let subscriptionId = "subscriptionId_example"; // String | subscripiton id
let opts = {
'userId': "userId_example" // String | user Id (optional)
};
apiInstance.subscriptionGroupsGetGroupsList(subscriptionId, opts).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
subscriptionId | String | subscripiton id | |
userId | String | user Id (optional) | [optional] |
- Content-Type: Not defined
- Accept: application/json