tw.messaging_services.update: Twilio Spoke API: Update a Messaging Service

View source: R/tw.messaging_services.R

tw.messaging_services.updateR Documentation

Twilio Spoke API: Update a Messaging Service

Description

Twilio Spoke API: Update a Messaging Service

Usage

tw.messaging_services.update(
  sid = Sys.getenv('TWILIO_ACCOUNT_SID'),
  key = Sys.getenv('TWILIO_KEY'),
  secret = Sys.getenv('TWILIO_SECRET'),
  service_sid = NA,
  baseurl = NA,
  friendly_name = NA,
  area_code_geomatch = TRUE,
  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!!!

service_sid

twilio SID of messaging service to update

baseurl

URL of your Spoke instance, e.g. 'https://wkamspoke.herokuapp.com'.

friendly_name

Friendly name for the service.

area_code_geomatch

Delivers message from US or Canadian Twilio phone number with a matching area code or overlay to your recipient.

verbose

Print detailed progress.

Details

?

Examples


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

# create a service
m <- tw.messaging_services.create(sid, token, friendly_name = 'quite friendly!')
# update a service
tw.messaging_services.update(
  sid, token, 
  service_sid = m$sid,
  friendly_name = 'new friendly name',
  area_code_geomatch = FALSE
)
# list all services
x <- tw.messaging_services.list(sid, token, n=20)
# delete a service
tw.messaging_services.delete(sid, token, m$sid)

## End(Not run)

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