summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJarod Reyes <jarodreyes@gmail.com>2016-08-16 11:51:12 -0700
committerGitHub <noreply@github.com>2016-08-16 11:51:12 -0700
commit4d7be745f5d6b0d261fb36be8c91a7c25d55f956 (patch)
tree1398aaa61914315be749a19f613870a9abd765d9
parentf8a4589aa716deea0f1eaf017d667fd4af793cc1 (diff)
parent55baff0a3eb1a0032b001e8fd7f6174d79147fa6 (diff)
downloadtwilio-php-4d7be745f5d6b0d261fb36be8c91a7c25d55f956.zip
twilio-php-4d7be745f5d6b0d261fb36be8c91a7c25d55f956.tar.gz
twilio-php-4d7be745f5d6b0d261fb36be8c91a7c25d55f956.tar.bz2
Merge pull request #359 from twilio/better-readme-seo
Updated the first snippet, so that Google results are meaningful.
-rw-r--r--README.md15
1 files changed, 8 insertions, 7 deletions
diff --git a/README.md b/README.md
index 4b4246d..995bf5f 100644
--- a/README.md
+++ b/README.md
@@ -14,16 +14,17 @@ You can install **twilio-php** via composer or by downloading the source.
### Send an SMS
```php
+// Send an SMS using Twilio's REST API and PHP
<?php
-$sid = "ACXXXXXX"; // Your Account SID from www.twilio.com/user/account
-$token = "YYYYYY"; // Your Auth Token from www.twilio.com/user/account
+$sid = "ACXXXXXX"; // Your Account SID from www.twilio.com/console
+$token = "YYYYYY"; // Your Auth Token from www.twilio.com/console
$client = new Twilio\Rest\Client($sid, $token);
$message = $client->account->messages->create(
'9991231234', // From a valid Twilio number
'8881231234', // Text this number
array(
- 'Body' => "Hello monkey!"
+ 'Body' => "Hello from Twilio!"
)
);
@@ -34,8 +35,8 @@ print $message->sid;
```php
<?php
-$sid = "ACXXXXXX"; // Your Account SID from www.twilio.com/user/account
-$token = "YYYYYY"; // Your Auth Token from www.twilio.com/user/account
+$sid = "ACXXXXXX"; // Your Account SID from www.twilio.com/console
+$token = "YYYYYY"; // Your Auth Token from www.twilio.com/console
$client = new Twilio\Rest\Client($sid, $token);
$call = $client->account->calls->create(
@@ -92,6 +93,6 @@ If you need help installing or using the library, please contact Twilio Support
If you've instead found a bug in the library or would like new features added, go ahead and open issues or pull requests against this repo!
-[apidocs]: http://twilio.github.io/twilio-php/
-[documentation]: https://twilio.com/api/docs
+[apidocs]: https://twilio.com/api/docs
+[documentation]: http://twilio.github.io/twilio-php/
[versioning]: https://github.com/twilio/twilio-php/blob/master/VERSIONS.md