Skip to content

Commit

Permalink
Updating README to reflect latest change to support https
Browse files Browse the repository at this point in the history
  • Loading branch information
wtfzdotnet committed Jan 18, 2014
1 parent 7d0aa6c commit d344358
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,22 @@ General API Usage

If your looking for a simple array entry point the API namespace is the place to be.

First we always have to construct the client:

```php
$token = new \Tmdb\ApiToken('your_tmdb_api_key_here');
$client = new \Tmdb\Client($token);
```

Or if you prefer requests to happen securely:

```php
$client = new \Tmdb\Client($token, null, true);
```

Then we do some work on it:

```php
$images = $client->getMoviesApi()->getMovie(550);
```

Expand All @@ -72,6 +84,12 @@ $token = new \Tmdb\ApiToken('your_tmdb_api_key_here');
$client = new \Tmdb\Client($token);
```

Or if you prefer requests to happen securely:

```php
$client = new \Tmdb\Client($token, null, true);
```

Then you pass this client onto one of the many repositories and do some work on it.

```php
Expand Down

0 comments on commit d344358

Please sign in to comment.