mirror of
https://github.com/hanzo-go/sdk.git
synced 2026-11-20 20:13:42 +00:00
1.8 KiB
1.8 KiB
\AllowanceAPI
All URIs are relative to https://api.hanzo.ai
| Method | HTTP request | Description |
|---|---|---|
| GetAllowance | Get /v1/allowance | Answers what the CALLER has left of their plan's free-call allowance in the window that holds them, and the instant that window reopens. |
GetAllowance
AllowanceAllowance GetAllowance(ctx).Execute()
Answers what the CALLER has left of their plan's free-call allowance in the window that holds them, and the instant that window reopens.
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/hanzoai/go-sdk/v8"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.AllowanceAPI.GetAllowance(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AllowanceAPI.GetAllowance``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetAllowance`: AllowanceAllowance
fmt.Fprintf(os.Stdout, "Response from `AllowanceAPI.GetAllowance`: %v\n", resp)
}
Path Parameters
This endpoint does not need any parameter.
Other Parameters
Other parameters are passed through a pointer to a apiGetAllowanceRequest struct via the builder pattern
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json, application/problem+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]