Get License Info
client.Admin.GetLicenseInfo(ctx, query) (*AdminGetLicenseInfoResponse, error)
GET/api/v1/admin/license/info
Get License Info
package main
import (
"context"
"fmt"
"github.com/run-llama/llamacloud-admin-go"
"github.com/run-llama/llamacloud-admin-go/option"
)
func main() {
client := llamacloudadmin.NewClient(
option.WithAPIKey("My API Key"),
)
response, err := client.Admin.GetLicenseInfo(context.TODO(), llamacloudadmin.AdminGetLicenseInfoParams{
})
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", response.ExpiresAt)
}
{
"expires_at": "2019-12-27T18:11:19.117Z",
"status": "status",
"message": "message",
"scopes": [
"string"
]
}Returns Examples
{
"expires_at": "2019-12-27T18:11:19.117Z",
"status": "status",
"message": "message",
"scopes": [
"string"
]
}