Skip to content

Commit

Permalink
Fixed #3 - added try/catch to code sample
Browse files Browse the repository at this point in the history
  • Loading branch information
danhstevens committed Feb 27, 2015
1 parent 719ba1d commit 48b582f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,13 @@ require_once 'vendor/autoload.php';

$client = new Kickbox\Client('Your_API_Key_Here');
$kickbox = $client->kickbox();
$response = $kickbox->verify("test@example.com");

try {
$response = $kickbox->verify("test@example.com");
}
catch (Exception $e) {
echo "Code: " . $e->getCode() . " Message: " . $e->getMessage();
}
```

### Response information
Expand Down

0 comments on commit 48b582f

Please sign in to comment.