tw.incoming_phone_numbers.list: Twilio Spoke API: List Owned Phones

View source: R/tw.incoming_phone_numbers.R

tw.incoming_phone_numbers.listR Documentation

Twilio Spoke API: List Owned Phones

Description

Twilio Spoke API: List Owned Phones

Usage

tw.incoming_phone_numbers.list(
  sid = Sys.getenv('TWILIO_ACCOUNT_SID'),
  key = Sys.getenv('TWILIO_KEY'),
  secret = Sys.getenv('TWILIO_SECRET'),
  n = 20, 
  phone_number = NA, 
  friendly_name = NA, 
  verbose = FALSE
)

Arguments

sid

twilio credentials: Account SID.

key

twilio credentials: Account user key.

secret

twilio credentials: User secret. Don't store this in scripts!!!

n

number of records to return, for API calls that return more than one record.

phone_number

The phone numbers of the IncomingPhoneNumber resources to read. You can specify partial numbers and use '*' as a wildcard for any digit.

friendly_name

Provide full (not partial :P) friendly name to match only a subset of phones.

verbose

Print detailed progress.

Returns

A data.table. NOTE: twilio API allows max 1000 to be returned.

Details

tw.incoming_phone_numbers.list() gets a list of owned phone numbers.

tw.incoming_phone_numbers.fetch() gets the details of a specific owned phone number.

tw.incoming_phone_numbers.delete() deletes a specific owned phone number from your twilio account. This removes it from your bill.

tw.messages.list() gets the most recent n messages. You can specify variables to narrow the query.

Examples


## Not run: 
source("C:/Users/lwolberg/Desktop/.ssh/twilio_auth.R")

tw.incoming_phone_numbers.list(sid, key, secret, n=20)

## End(Not run)

workingamerica/twilio documentation built on Jan. 30, 2024, 4:55 p.m.