Skip to content

Commit

Permalink
Merge pull request #14 from nikush/patch
Browse files Browse the repository at this point in the history
Correct code example for authentication in README
  • Loading branch information
Ramon Kleiss committed Sep 10, 2013
2 parents 328a44f + 3d0e21a commit e1e31e5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,13 @@ authenticate using the `Client` class:

```php
<?php
use Transmission\Client;
use Transmission\Transmission;

$client = new Client();
$client->authenticate('username', 'password');
$transmission = new Transmission();
$transmission->authenticate('username', 'password');
$transmission->setClient($client);
```

Additionally, you can control the actual Transmission setting. This means
Expand Down

0 comments on commit e1e31e5

Please sign in to comment.