summaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorElmer Thomas <elmer@thinkingserious.com>2016-03-20 20:32:22 -0700
committerElmer Thomas <elmer@thinkingserious.com>2016-03-20 20:32:22 -0700
commit1f9f18e136c2bbaeda2fbac9a10ab8c5abc07993 (patch)
tree116c372c47f966c0b1bb6de0bc9c12e2369331f2 /README.md
parentdb86af55edb0329f4cb0ee4a97e8c5a49a7850de (diff)
downloadphp-http-client-1f9f18e136c2bbaeda2fbac9a10ab8c5abc07993.zip
php-http-client-1f9f18e136c2bbaeda2fbac9a10ab8c5abc07993.tar.gz
php-http-client-1f9f18e136c2bbaeda2fbac9a10ab8c5abc07993.tar.bz2
Composer/Packagist tested
Diffstat (limited to 'README.md')
-rw-r--r--README.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/README.md b/README.md
index d1a2c6e..e9397d4 100644
--- a/README.md
+++ b/README.md
@@ -40,7 +40,7 @@ Add php-http-client to your `composer.json` file. If you are not using [Composer
```json
{
"require": {
- "sendgrid/php-http-client": "~1"
+ "sendgrid/php-http-client": "1.*"
}
}
```
@@ -67,8 +67,8 @@ Following is an abridged example, here is the [full working code](https://github
```php
<?php
-include 'php-http-client';
-$config = new SendGrid\Config(dirname(__DIR__), '.env');
+require __DIR__ . '/vendor/autoload.php';
+$config = new SendGrid\Config(getcwd(), '.env');
$api_key = getenv('SENDGRID_API_KEY');
$headers = array(
'Content-Type: application/json',