Skip to content

[doc] misleading #574

Open
Open
@guiyumin

Description

@guiyumin

Describe the bug
the doc shows: const twitterClient = new TwitterApi('<YOUR_APP_USER_TOKEN>');
it's misleading

To Reproduce
N/A

Expected behavior

const twitterClient = new TwitterApi({
  appKey: process.env.TWITTER_CONSUMER_API_KEY,
  appSecret: process.env.TWITTER_CONSUMER_API_SECRET,
  accessToken: process.env.TWITTER_ACCESS_TOKEN,
  accessSecret: process.env.TWITTER_ACCESS_SECRET,
});

this one works
I hope the doc can be updated

Version
N/A

Additional context
N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions