nylas-php icon indicating copy to clipboard operation
nylas-php copied to clipboard

Getting error when trying to use the lib

Open dennyshess opened this issue 9 years ago • 1 comments

I'm keep getting the following error when I try to use your e-mails from github on my server. Anybody can help me with this?

The only code which I execute is:

use Nylas;

$client = new Nylas('***', '***');
$redirect_url = 'url/login_callback.php';
$get_auth_url = $client->createAuthURL($redirect_url);

// redirect to Nylas auth server
header("Location: ".$get_auth_url);

Parse error: syntax error, unexpected '$item' (T_VARIABLE) in path.../nylas-php/src/Nylas.php on line 210

Thanks so much for your help! Dennys

dennyshess avatar Nov 01 '15 16:11 dennyshess

Hey @dennyshess would it be possible to know what php and guzzle version you are using? Only php 5.4 and above is supported

KartikTalwar avatar Nov 01 '15 18:11 KartikTalwar