Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Cmd = &cobra.Command{
Use: "number",
Short: "Manage Bandwidth phone numbers",
}
Cmd is the `band number` parent command.
Functions ¶
func BuildCheckerBody ¶
BuildCheckerBody constructs the body for the dry-run POST /api/v2/accounts/{accountId}/serviceActivationChecker.
func BuildOrderBody ¶
BuildOrderBody builds the XML request body for ordering phone numbers.
func BuildServiceActivationBody ¶
func BuildServiceActivationBody(opts ServiceActivationOpts) (map[string]interface{}, error)
BuildServiceActivationBody constructs the JSON body for POST /api/v2/accounts/{accountId}/serviceActivation.
The API requires at least one service to be specified; we surface that requirement as a CLI-level validation error rather than letting the API reject the request.
Types ¶
Click to show internal directories.
Click to hide internal directories.