diff --git a/README.markdown b/README.markdown index 8c0aa69..e3d50fd 100644 --- a/README.markdown +++ b/README.markdown @@ -51,9 +51,9 @@ String token = 'YYYYYYYYYYYYYYYYYY'; TwilioRestClient client = new TwilioRestClient(account, token); Map params = new Map { - 'to' => '9991231234', - 'from' => '9991231234', - 'url' => 'http://twimlets.com/holdmusic?Bucket=com.twilio.music.ambient' + 'To' => '9991231234', + 'From' => '9991231234', + 'Url' => 'http://twimlets.com/holdmusic?Bucket=com.twilio.music.ambient' }; TwilioCall call = client.getAccount().getCalls().create(params); ``` @@ -68,9 +68,9 @@ String token = 'YYYYYYYYYYYYYYYYYY'; TwilioRestClient client = new TwilioRestClient(account, token); Map params = new Map { - 'to' => '+12316851234', - 'from' => '+15555555555', - 'body' => 'Hello there!' + 'To' => '+12316851234', + 'From' => '+15555555555', + 'Body' => 'Hello there!' }; TwilioSMS sms = client.getAccount().getSMSMessages().create(params); ``` diff --git a/docs/quickstart.rst b/docs/quickstart.rst index 69b7e63..781ea0c 100644 --- a/docs/quickstart.rst +++ b/docs/quickstart.rst @@ -18,9 +18,9 @@ This sample calls the `to` phone number and plays music. The `from` number must TwilioRestClient client = new TwilioRestClient(account, token); Map params = new Map { - 'to' => '9991231234', - 'from' => '9991231234', - 'url' => 'http://twimlets.com/holdmusic?Bucket=com.twilio.music.ambient' + 'To' => '9991231234', + 'From' => '9991231234', + 'Url' => 'http://twimlets.com/holdmusic?Bucket=com.twilio.music.ambient' }; TwilioCall call = client.getAccount().getCalls().create(params); @@ -36,9 +36,9 @@ This sample texts *Hello there!* to the `to` phone number. The `from` number mu TwilioRestClient client = new TwilioRestClient(account, token); Map params = new Map { - 'to' => '+12316851234', - 'from' => '+15555555555', - 'body' => 'Hello there!' + 'To' => '+12316851234', + 'From' => '+15555555555', + 'Body' => 'Hello there!' }; TwilioSMS sms = client.getAccount().getSMSMessages().create(params); diff --git a/docs/usage/phone-calls.rst b/docs/usage/phone-calls.rst index 3365c51..0ce4169 100755 --- a/docs/usage/phone-calls.rst +++ b/docs/usage/phone-calls.rst @@ -19,9 +19,9 @@ can be successfully started, you'll need a url which outputs valid `TwiML TwilioRestClient client = new TwilioRestClient(ACCOUNT_SID, AUTH_TOKEN); Map params = new Map() { - 'to' => '9991231234', - 'from' => '9991231234', - 'url' => 'http://foo.com/call.xml' + 'To' => '9991231234', + 'From' => '9991231234', + 'Url' => 'http://foo.com/call.xml' }; TwilioCall call = client.getAccount().getCalls().create(params);