title | expires_at | tags | ||
---|---|---|---|---|
Cells API |
never |
|
This reference does not cover the protobuf payload supplied to each endpoint.
Instead, it illustrates calls to the API via the Golang bbs.Client
interface.
Each method on that Client
interface takes a lager.Logger
as the first argument to log errors generated within the client.
This first Logger
argument will not be duplicated on the descriptions of the method arguments.
For detailed information on the types referred to below, see the godoc documentation for the BBS models.
POST an empty request to /v1/cells/list.r1
and receive a
CellsResponse.
- Make a GET request to
/v1/cells/list.r1
and receive a CellsResponse.
Cells(logger lager.Logger) ([]*models.CellPresence, error)
None.
[]*models.CellPresence
: Slice ofmodels.CellPresence
pointers.error
: Non-nil if an error occurred.
client := bbs.NewClient(url)
cells, err := client.Cells(logger)