Skip to content
This repository has been archived by the owner on Nov 19, 2019. It is now read-only.

Commit

Permalink
Merge pull request #13 from spaceman1066/master
Browse files Browse the repository at this point in the history
Fixed create() params in docs
  • Loading branch information
Jon Plax committed Mar 12, 2012
2 parents 23b7fbd + fc96df9 commit f2af6e6
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
12 changes: 6 additions & 6 deletions README.markdown
Expand Up @@ -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);
```
Expand All @@ -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);
```
Expand Down
12 changes: 6 additions & 6 deletions docs/quickstart.rst
Expand Up @@ -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);
Expand All @@ -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);
Expand Down
6 changes: 3 additions & 3 deletions docs/usage/phone-calls.rst
Expand Up @@ -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);
Expand Down

0 comments on commit f2af6e6

Please sign in to comment.