Cells API Reference
October 1, 2024 ยท View on GitHub
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.
Cells APIs
Cells
BBS API Endpoint
POST an empty request to /v1/cells/list.r1 and receive a
CellsResponse.
Deprecated Endpoints
- Make a GET request to
/v1/cells/list.r1and receive a CellsResponse.
Golang Client API
Cells(logger lager.Logger) ([]*models.CellPresence, error)
Input
None.
Output
[]*models.CellPresence: Slice ofmodels.CellPresencepointers.error: Non-nil if an error occurred.
Example
client := bbs.NewClient(url)
cells, err := client.Cells(logger)