Vonage / vonage-php-sdk-core

Vonage REST API client for PHP. API support for SMS, Voice, Text-to-Speech, Numbers, Verify (2FA) and more.
https://developer.vonage.com/
Apache License 2.0
910 stars 180 forks source link

application.key建议 #157

Closed cuncle closed 5 years ago

cuncle commented 5 years ago
$keypair = new \Nexmo\Client\Credentials\Keypair(file_get_contents(__DIR__ . '/application.key'), 'application_id');

其中的 (file_get_contents(DIR . '/application.key'), 'application_id') 改为'(NEXMO_APPLICATION_PRIVATE_KEY_PATH), NEXMO_APPLICATION_ID )'比较容易理解。

mheap commented 5 years ago

Translation (via Google translate):

Where (file_get_contents(DIR . '/application.key'), 'application_id') is changed to '(NEXMO_APPLICATION_PRIVATE_KEY_PATH), NEXMO_APPLICATION_ID ) 'It's easier to understand.

lornajane commented 5 years ago

This is a nice suggestion, thanks! I created a pull request for this change.