1. Go to this page and download the library: Download brainstream/nylas-php library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
try {
$credentials = $nylasClient->Administration->ConnectorsCredentials->list(
PROVIDER_STRING
);
print_r($credentials);
} catch (GuzzleException) {}
//NOTE: Replace "PROVIDER_STRING" with real provider string
try {
$messages = $nylasClient->Messages->Message->list(
GRANT_ID_STRING
);
print_r($messages);
} catch (GuzzleException) {}
//NOTE: Replace "GRANT_ID_STRING" with real grant id
try {
$calendars = $nylasClient->Calendars->Calendar->list(
GRANT_ID_STRING
);
print_r($calendars);
} catch (GuzzleException) {}
//NOTE: Replace "GRANT_ID_STRING" with real grant id
try {
$drafts = $nylasClient->Drafts->Draft->list(
GRANT_ID_STRING
);
print_r($drafts);
} catch (GuzzleException) {}
//NOTE: Replace "GRANT_ID_STRING" with real grant id
shell
composer
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.