dimanche 15 mars 2015

How to get twitter access token in NodeJS?


Vote count:

0




How can I get users access token and access token secret in the background by the username and password?


I try(according of the twitter documentation):



app.get('/token', function(req, res){
tweet.post('/oauth/access_token', function(err, data, response){
if(err) console.log(err);
console.log(data);
})
})


And it response with the error:



{ [Error: Sorry, that page does not exist]
message: 'Sorry, that page does not exist',
statusCode: 404,
twitterReply: '{"errors":[{"message":"Sorry, that page does not exist","code":34}]}',
code: 34,
allErrors: [ { message: 'Sorry, that page does not exist', code: 34 } ] }
undefined


What is wrong? Can anyone help me with it?



asked 44 secs ago







How to get twitter access token in NodeJS?

Aucun commentaire:

Enregistrer un commentaire