Skip to content

Commit

Permalink
Modified SMS example to be consistent with the rest.
Browse files Browse the repository at this point in the history
  • Loading branch information
Connor Montgomery committed Jun 17, 2011
1 parent 151e701 commit 5976967
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/example-rest.rb
Expand Up @@ -63,11 +63,11 @@
puts "code: %s" % [resp.code]

# ===========================================================================
# 6. Send an SMS Message
# 6. Send an SMS Message to 415-555-1212
# uses a HTTP POST, and a new variable t for the information (because it needs "Body")
t = {
'From' => CALLER_ID,
'To' => NNNNNNNNNN # insert your sandbox number here
'To' => '415-555-1212',
'Body' => "Hello, world. This is a text from Twilio using Ruby!"
}
resp = account.request("/#{API_VERSION}/Accounts/#{Account_SID}/SMS/Messages",
Expand Down

0 comments on commit 5976967

Please sign in to comment.