Permalink
Browse files

Merge pull request #13 from spaceman1066/master

Fixed create() params in docs
  • Loading branch information...
2 parents 23b7fbd + fc96df9 commit f2af6e6d317deb7245b8741f905441dfd1d9771b @spaceman1066 spaceman1066 committed Mar 12, 2012
Showing with 15 additions and 15 deletions.
  1. +6 −6 README.markdown
  2. +6 −6 docs/quickstart.rst
  3. +3 −3 docs/usage/phone-calls.rst
View
@@ -51,9 +51,9 @@ String token = 'YYYYYYYYYYYYYYYYYY';
TwilioRestClient client = new TwilioRestClient(account, token);
Map<String,String> params = new Map<String,String> {
- '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<String,String> params = new Map<String,String> {
- 'to' => '+12316851234',
- 'from' => '+15555555555',
- 'body' => 'Hello there!'
+ 'To' => '+12316851234',
+ 'From' => '+15555555555',
+ 'Body' => 'Hello there!'
};
TwilioSMS sms = client.getAccount().getSMSMessages().create(params);
```
View
@@ -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<String,String> params = new Map<String,String> {
- '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<String,String> params = new Map<String,String> {
- 'to' => '+12316851234',
- 'from' => '+15555555555',
- 'body' => 'Hello there!'
+ 'To' => '+12316851234',
+ 'From' => '+15555555555',
+ 'Body' => 'Hello there!'
};
TwilioSMS sms = client.getAccount().getSMSMessages().create(params);
@@ -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<String,String> params = new Map<String,String>() {
- '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);

0 comments on commit f2af6e6

Please sign in to comment.