We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How do I access the Twitter Bookmarks API endpoint with this library?
The text was updated successfully, but these errors were encountered:
Assuming you have an OAuth session with the relevant keys, this should work.
const search = async(req, res) => { const client = new Twitter({ version: '2', consumer_key: process.env.CLIENT_ID, consumer_secret: process.env.CLIENT_SECRET, access_token_key: token.twitter.access_token, access_token_secret: token.twitter.refresh_token, extension: false, }); try { const results = await client.get(`users/${token.sub}/bookmarks`); return res.status(200).json({ status: 'Ok', data: results }); } catch(e) { console.log("Error") console.dir(e, {depth: null, colors: true}); return res.status(400).json(e); } }
Sorry, something went wrong.
No branches or pull requests
How do I access the Twitter Bookmarks API endpoint with this library?
The text was updated successfully, but these errors were encountered: