Analytics
ListPlans
List available plans
Returns all available plan tiers with their limits and pricing.
Usage
result, err := client.Analytics.ListPlans(ctx)Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| ctx | context.Context | Yes | Request context |
Response
(*pgbeam.ListPlansResponse, error) — list of available plans.
Example
import pgbeam "github.com/pgbeam/pgbeam-go"
client := pgbeam.NewClient(&pgbeam.ClientOptions{
APIKey: "pgb_your_api_key",
})
result, err := client.Analytics.ListPlans(ctx)
if err != nil {
log.Fatal(err)
}
fmt.Println(result)Errors
| Status | Description |
|---|---|
| 401 | Missing or invalid authentication. |
| 429 | Rate limited. Try again later. |