Releases: lanlin/nylas-php
bug fix
bug fix
options bug fix
bug fix
-
fix bug
setLogFile()
-
add resource type support for
log_file
-
about the log file parameter
nylas-php use the guzzlehttp for request nylas.
but guzzlehttp only support a resource type as the debug handler (cURL CURLOPT_STDERR
required).
so for anyone who wants to use psr/log
interface to debug
you can init a temp resource, and pass the handler to nylas-php.
then get log content from temp resource after nylas-php call.
$handler = fopen('php://temp', 'w+');
$options =
[
'log_file' => $handler,
...
];
$nylas = new Client($options);
$nylas->doSomething();
....
rewind($handler);
$logContent = stream_get_contents($handler);
fclose($handler);
$yourPsrLogger->debug($logContent);
validator update
validator rules update
api 2.1 support & php 7.4 support
- some new methods add for api 2.1
createWebhook();
updateWebhook();
deleteWebhook();
getTokenInfo();
getApplication();
updateApplication();
- php 7.4 support
- some modification for account methods, like
getAccountInfo();
reactiveAccount();
cancelAccount();
- some modification for data validator
- update the description README.MD
upload api bug fix
#5 fixed
new api support
there's some change for Nylas API 2.0 see the changelog https://changelog.nylas.com/
I made some update in this version:
- New API Endpoint: IP Addresses
getIpAddresses()
$nylas->Accounts()->Manage()->getIpAddresses();
- New API Endpoint: Revoke All Tokens
revokeAllTokens()
// $params = ['keep_access_token' => '???']
$nylas->Accounts()->Manage()->revokeAllTokens($params = []);
- some validation rules for add contacts
enable or disable json_decode error
$client = new \Nylas\Client(['off_decode_error' => true]);
This option can be used to control the exception throws when decoding the responded body.
When set to true, the body content will be returned directly without parsing when the json_decode error occurs.
webhook signature support
receive & parse webhook notification data.