All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
subscriptionPlansGetSubscriptionPlan | GET /api/manage/v1/SubscriptionPlans/{id} | Returns a subscription plan. Not all subscriptions can be issued for customer. |
subscriptionPlansGetSubscriptionPlans | GET /api/manage/v1/SubscriptionPlans | Returns a list of active subscription plans that can be issued to the user. |
SubscriptionPlanVM subscriptionPlansGetSubscriptionPlan(id)
Returns a subscription plan. Not all subscriptions can be issued for customer.
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.SubscriptionPlansApi();
let id = "id_example"; // String | Identifier of subsctiption plan
apiInstance.subscriptionPlansGetSubscriptionPlan(id).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
id | String | Identifier of subsctiption plan |
- Content-Type: Not defined
- Accept: application/json
SubscriptionPlansVM subscriptionPlansGetSubscriptionPlans(opts)
Returns a list of active subscription plans that can be issued to the user.
If no active subscription plans, then the endpoint will return empty list
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.SubscriptionPlansApi();
let opts = {
'skip': 0, // Number | Variable for pagination, defautl value is 0
'take': 10 // Number | Variable for pagination, default value is 10
};
apiInstance.subscriptionPlansGetSubscriptionPlans(opts).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
skip | Number | Variable for pagination, defautl value is 0 | [optional] [default to 0] |
take | Number | Variable for pagination, default value is 10 | [optional] [default to 10] |
- Content-Type: Not defined
- Accept: application/json