(Organizations)
- CreateFreeTrial - Create a free trial for an organization
- GetOrganization - Get organization
- GetOrganizationUsage - Get billing usage summary for a particular organization
- GetOrganizations - Get organizations for a user
Creates a free trial for an organization
using SpeakeasySDK;
using SpeakeasySDK.Models.Shared;
var sdk = new SDK(security: new Security() {
APIKey = "<YOUR_API_KEY_HERE>",
});
var res = await sdk.Organizations.CreateFreeTrialAsync();
// handle response
Error Object | Status Code | Content Type |
---|---|---|
SpeakeasySDK.Models.Errors.SDKException | 4xx-5xx | / |
Get information about a particular organization.
using SpeakeasySDK;
using SpeakeasySDK.Models.Operations;
using SpeakeasySDK.Models.Shared;
var sdk = new SDK(security: new Security() {
APIKey = "<YOUR_API_KEY_HERE>",
});
GetOrganizationRequest req = new GetOrganizationRequest() {
OrganizationID = "<value>",
};
var res = await sdk.Organizations.GetOrganizationAsync(req);
// handle response
Parameter | Type | Required | Description |
---|---|---|---|
request |
GetOrganizationRequest | ✔️ | The request object to use for the request. |
Error Object | Status Code | Content Type |
---|---|---|
SpeakeasySDK.Models.Errors.SDKException | 4xx-5xx | / |
Returns a billing usage summary by target languages for a particular organization
using SpeakeasySDK;
using SpeakeasySDK.Models.Shared;
var sdk = new SDK(security: new Security() {
APIKey = "<YOUR_API_KEY_HERE>",
});
var res = await sdk.Organizations.GetOrganizationUsageAsync();
// handle response
Error Object | Status Code | Content Type |
---|---|---|
SpeakeasySDK.Models.Errors.SDKException | 4xx-5xx | / |
Returns a list of organizations a user has access too
using SpeakeasySDK;
using SpeakeasySDK.Models.Shared;
var sdk = new SDK(security: new Security() {
APIKey = "<YOUR_API_KEY_HERE>",
});
var res = await sdk.Organizations.GetOrganizationsAsync();
// handle response
Error Object | Status Code | Content Type |
---|---|---|
SpeakeasySDK.Models.Errors.SDKException | 4xx-5xx | / |