Skip to content

Commit 8232a57

Browse files
lornajanemheap
authored andcommitted
Use clearer placeholders in example. Fixes #157
1 parent 2f79f67 commit 8232a57

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,10 @@ All `$client->calls()` methods require the client to be constructed with a `Nexm
296296

297297
```php
298298
$basic = new \Nexmo\Client\Credentials\Basic('key', 'secret');
299-
$keypair = new \Nexmo\Client\Credentials\Keypair(file_get_contents(__DIR__ . '/application.key'), 'application_id');
299+
$keypair = new \Nexmo\Client\Credentials\Keypair(
300+
file_get_contents((NEXMO_APPLICATION_PRIVATE_KEY_PATH),
301+
NEXMO_APPLICATION_ID
302+
);
300303

301304
$client = new \Nexmo\Client(new \Nexmo\Client\Credentials\Container($basic, $keypair));
302305
```

0 commit comments

Comments
 (0)