twilio_lookup: Twilio - Phone Number lookup

Description Usage Arguments Details Value Examples

View source: R/twilio_lookup.R

Description

Validate the phone number and return country codes and valid phone format.

Usage

1
2
twilio_lookup(phone = NA, api_sid = Sys.getenv("TWILIO_SID"),
  api_token = Sys.getenv("TWILIO_TOKEN"))

Arguments

phone

character The phone number. Required.

twilio_sid

character The Twilio API SID. Looks for environment variable TWILIO_SID Required..

twilio_token

character The Twilio API token. Looks for environment variable TWILIO_TOKEN Required.

Details

This function uses the Twilio phone lookup API. https://www.twilio.com/docs/lookup/api

Value

a list containing the response from the API

Examples

1
twilio_lookup(phone='6178675309')

Btibert3/et documentation built on May 23, 2019, 1:44 p.m.