Skip to content

Instantly share code, notes, and snippets.

@joninvski
Created September 6, 2016 09:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joninvski/eb50be16bf822dd5361be491089665a7 to your computer and use it in GitHub Desktop.
Save joninvski/eb50be16bf822dd5361be491089665a7 to your computer and use it in GitHub Desktop.
require 'twilio-ruby'
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
auth_token = 'your_auth_token'
@client = Twilio::REST::Client.new account_sid, auth_token
# Get an object from its sid. If you do not have a sid,
# check out the list resource examples on this page
@account = @client.accounts.get("ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")
@account.update(:status => "suspended")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment