All URIs are relative to https://api.carbon.ai
Method | Path | Description |
---|---|---|
Get | Get /organization | Get Organization |
Get Organization
package main
import (
"fmt"
"os"
carbon "github.com/Carbon-for-Developers/carbon-sdks/go"
)
func main() {
configuration := carbon.NewConfiguration()
configuration.SetApiKey("AUTHORIZATION")
client := carbon.NewAPIClient(configuration)
request := client.OrganizationsApi.Get(
)
resp, httpRes, err := request.Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OrganizationsApi.Get``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", httpRes)
}
// response from `Get`: OrganizationResponse
fmt.Fprintf(os.Stdout, "Response from `OrganizationsApi.Get`: %v\n", resp)
fmt.Fprintf(os.Stdout, "Response from `OrganizationResponse.Get.Id`: %v\n", resp.Id)
fmt.Fprintf(os.Stdout, "Response from `OrganizationResponse.Get.Name`: %v\n", resp.Name)
fmt.Fprintf(os.Stdout, "Response from `OrganizationResponse.Get.Nickname`: %v\n", resp.Nickname)
fmt.Fprintf(os.Stdout, "Response from `OrganizationResponse.Get.RemoveBranding`: %v\n", resp.RemoveBranding)
fmt.Fprintf(os.Stdout, "Response from `OrganizationResponse.Get.CustomBranding`: %v\n", resp.CustomBranding)
fmt.Fprintf(os.Stdout, "Response from `OrganizationResponse.Get.CustomLimits`: %v\n", resp.CustomLimits)
fmt.Fprintf(os.Stdout, "Response from `OrganizationResponse.Get.AggregateFileSize`: %v\n", resp.AggregateFileSize)
fmt.Fprintf(os.Stdout, "Response from `OrganizationResponse.Get.AggregateNumCharacters`: %v\n", resp.AggregateNumCharacters)
fmt.Fprintf(os.Stdout, "Response from `OrganizationResponse.Get.AggregateNumTokens`: %v\n", resp.AggregateNumTokens)
fmt.Fprintf(os.Stdout, "Response from `OrganizationResponse.Get.AggregateNumEmbeddings`: %v\n", resp.AggregateNumEmbeddings)
fmt.Fprintf(os.Stdout, "Response from `OrganizationResponse.Get.PeriodEndsAt`: %v\n", resp.PeriodEndsAt)
fmt.Fprintf(os.Stdout, "Response from `OrganizationResponse.Get.CancelAtPeriodEnd`: %v\n", resp.CancelAtPeriodEnd)
fmt.Fprintf(os.Stdout, "Response from `OrganizationResponse.Get.CreatedAt`: %v\n", resp.CreatedAt)
fmt.Fprintf(os.Stdout, "Response from `OrganizationResponse.Get.UpdatedAt`: %v\n", resp.UpdatedAt)
}
[Back to top] [Back to API list] [Back to Model list] [Back to README]