Created
September 6, 2016 09:37
-
-
Save joninvski/eb50be16bf822dd5361be491089665a7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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