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.32k stars 186 forks source link

Subcribe on Twitter #504

Open DragoLifer opened 1 year ago

DragoLifer commented 1 year 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 1 year 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 });