node-twitter icon indicating copy to clipboard operation
node-twitter copied to clipboard

Could not add tweet in the collection

Open lucypoly opened this issue 6 years ago • 1 comments

I am trying to use collections/entries/curate endpoint to add new tweet to the collection. I tried `const params = {id: 'custom-978631851660234753', changes: [{op: 'add', tweet_id: '978624007787311105'}]};

router.post('/', (req, res) => { client.post('collections/entries/curate', params, function (error, collection, response) { res.send(collection); }); });But it returns { "code": 32, "message": "Could not authenticate you." }`

Also when I am trying to get the collection (id = custom-978631851660234753) router.get('/:id', (req, res) => { client.post('collections/entries', {id: req.params.id}, function (error, collection, response) { res.send(collection); }); }); I receive

{ "code": 86, "message": "This method requires a GET or HEAD." } ]

Note! search/tweets works fine

lucypoly avatar Mar 27 '18 14:03 lucypoly

@lucypoly https://github.com/Preposterous/twitter-lite open up an issue here if you're having trouble

peterpme avatar Mar 28 '18 20:03 peterpme