available_phone_numbers

package
v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 20, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package available_phone_numbers contains auto-generated files. DO NOT MODIFY

Package available_phone_numbers contains auto-generated files. DO NOT MODIFY

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client for managing available phone number resources See https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource for more details

func New

func New(client *client.Client, properties ClientProperties) *Client

New creates a new instance of the available phone numbers client

func (Client) Page

func (c Client) Page() (*CountriesPageResponse, error)

Page retrieves a page of countries with available phone numbers See https://www.twilio.com/docs/iam/keys/api-key-resource#read-a-key-resource for more details Context is defaulted to Background. See https://golang.org/pkg/context/#Background for more information

func (Client) PageWithContext

func (c Client) PageWithContext(context context.Context) (*CountriesPageResponse, error)

PageWithContext retrieves a page of countries with available phone numbers See https://www.twilio.com/docs/iam/keys/api-key-resource#read-a-key-resource for more details

type ClientProperties

type ClientProperties struct {
	AccountSid string
}

ClientProperties are the properties required to manage the available phone numbers resources

type CountriesPageResponse

type CountriesPageResponse struct {
	Countries []PageCountryResponse `json:"countries"`
	URI       string                `json:"uri"`
}

CountriesPageResponse defines the response fields for the available phone number countries page

type PageCountryResponse

type PageCountryResponse struct {
	Beta        bool   `json:"beta"`
	Country     string `json:"country"`
	CountryCode string `json:"country_code"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL