Skip to content

folderResponse.folders from example always empty #54

@obriankevin11

Description

@obriankevin11

Hi,

First thank you for your lib.

I have a problem using it, I think your example is incomplete.

I get

UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): ReferenceError: NodeGoogleDrive is not defined

If I write
const { NodeGoogleDrive } = require('node-google-drive');

I get

UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: NodeGoogleDrive is not a constructor

[Edit]
I have no error with:
const NodeGoogleDrive = require('node-google-drive');

But folderResponse.folders is always empty.

[Edit]
OK I'm using a service account so I needed to share my root folder with it!

Thank you

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