Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

301
Views
Cómo obtener el nombre de usuario y la foto de perfil de Twitter usando el paquete Twit NPM

Estoy haciendo uso del paquete twit npm como se muestra a continuación para obtener el nombre de usuario de Twitter autenticado y la imagen de perfil, entre otra información.

 const Twit = require('twit'); let T = new Twit({ consumer_key: 'xxx', consumer_secret: 'xxx', access_token: 'xxx', access_token_secret: 'xxx', timeout_ms: 60 * 1000, strictSSL: true, }); T.get('users/show.json', { screen_name: `${usernameFromAbove}`}, function (err, data, response) { if (err) { console.log(`User Fetch Error`); console.log(err); } console.log(data); });

Desafortunadamente, la respuesta que sigo recibiendo es esta:

 2021-09-23T23:38:55.659299+00:00 app[web.1]: errors: [ { message: 'Sorry, that page does not exist', code: 34 } ]

¿Estoy llamando al extremo equivocado? ¿Estoy confundido actualmente?

Cualquier idea para resolver esto sería muy apreciada.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

El punto final es 'users/show' no 'users/show.json' .

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!