Understand the Path-based Interface
mainThe client uses a path-based naming convention for its API surface. Every interface starting with API follows a pattern where you chain path segments followed by the operation method (e.g., Get, Post, Patch, Delete).
- Unparameterized paths:
client.API.Account().Details().Get(ctx, nil)maps toGET /account/details. - Parameterized paths:
client.API.Organizations().ByOrganization_name("foo").Projects().Post(ctx, body, nil)maps toPOST /organizations/{organization_name}/projects.