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 |
int64 SubscriptionGroupsCountGroupsAsync(ctx, subscriptionId).Execute()
Returns a number of groups in subscription
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/fastreports/gofrcloud"
)
func main() {
subscriptionId := "subscriptionId_example" // string | subscripiton id
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SubscriptionGroupsAPI.SubscriptionGroupsCountGroupsAsync(context.Background(), subscriptionId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SubscriptionGroupsAPI.SubscriptionGroupsCountGroupsAsync``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SubscriptionGroupsCountGroupsAsync`: int64
fmt.Fprintf(os.Stdout, "Response from `SubscriptionGroupsAPI.SubscriptionGroupsCountGroupsAsync`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
subscriptionId | string | subscripiton id |
Other parameters are passed through a pointer to a apiSubscriptionGroupsCountGroupsAsyncRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
int64
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GroupsVM SubscriptionGroupsGetGroupsList(ctx, subscriptionId).UserId(userId).Execute()
returns groups of the subscription or subscription user
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/fastreports/gofrcloud"
)
func main() {
subscriptionId := "subscriptionId_example" // string | subscripiton id
userId := "userId_example" // string | user Id (optional) (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SubscriptionGroupsAPI.SubscriptionGroupsGetGroupsList(context.Background(), subscriptionId).UserId(userId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SubscriptionGroupsAPI.SubscriptionGroupsGetGroupsList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SubscriptionGroupsGetGroupsList`: GroupsVM
fmt.Fprintf(os.Stdout, "Response from `SubscriptionGroupsAPI.SubscriptionGroupsGetGroupsList`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
subscriptionId | string | subscripiton id |
Other parameters are passed through a pointer to a apiSubscriptionGroupsGetGroupsListRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
userId | string | user Id (optional) |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]