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." } ]
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