PLhery / node-twitter-api-v2

Strongly typed, full-featured, light, versatile yet powerful Twitter API v1.1 and v2 client for Node.js.
https://www.npmjs.com/package/twitter-api-v2
Apache License 2.0
1.24k stars 174 forks source link

Subcribe on Twitter #504

Open DragoLifer opened 8 months ago

DragoLifer commented 8 months ago

Hello, I am studying this library and have a question, can I use this api to subscribe to a user from my account?

HapLifeMan commented 7 months ago

Hello, the account subscription (Account Activity API) is now available starting Enterprise tier, you can use something like that as there's no wrapper provided by this library:

client.v1.post(`account_activity/webhooks/${TWITTER_WEBHOOK_ID}/subscriptions/all.json`, { user_id: USER_ID });