FeedHive / twitter-api-client

A user-friendly Node.js / JavaScript client library for interacting with the Twitter API.
MIT License
948 stars 84 forks source link

GET lists/members need list parameters #42

Closed guillaumeLamanda closed 3 years ago

guillaumeLamanda commented 3 years ago

Describe the bug

The twitter endpoint /list/members need list parameters but currently doesn't take any.

To reproduce
Steps to reproduce the behavior:

  1. Install the latest Twitter client
  2. Open a JS/TS file
  3. Create a twitter client,
  4. Call client.accountsAndUsers.listsMembers() method
  5. See the error :
    data: '{"errors":[{"code":112,"message":"You must specify either a list ID or a slug and owner."}]}' } 

Expected behavior

Id should take list_id and slug as parameter according to the endpoint API

Package Manager:
To install Twitter API Client, I used yarn