Skip to content

Fatal error: Class 'Nylas' not found in C:\xampp\htdocs\nylas-php\index.php on line 5 #14

@stplsiraj

Description

@stplsiraj

I'm getting the above error while I have already used Nylas, class Nylas not found.
Anybody can help me with this?

my code is:

`<?php
namespace Nylas;

use Nylas;

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

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

My folder structure is:

Nylas folder

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions