title: Twitter API oauth/request token page does not exist
body: <p>Using node twitter package <a href="https://www.npmjs.com/package/twitter" rel="nofollow noreferrer">https://www.npmjs.com/package/twitter</a>
  Twitter: <a href="https://developer.twitter.com/en/docs/authentication/oauth-1-0a/obtaining-user-access-tokens" rel="nofollow noreferrer">https://developer.twitter.com/en/docs/authentication/oauth-1-0a/obtaining-user-access-tokens</a></p>
  <p>I'm trying to post a tweet for someone.</p>
  <p>Tell me what's wrong with this:</p>
  <pre><code>var Twitter = require('twitter');
  
  const client = new Twitter({
      consumer_key: process.env.TWITTER_CONSUMER_KEY,
      consumer_secret: process.env.TWITTER_CONSUMER_SECRET,
      access_token_key: process.env.TWITTER_ACCESS_TOKEN_KEY,
      access_token_secret: process.env.TWITTER_ACCESS_TOKEN_SECRET
  });
  
  client.post('oauth/request_token', {oauth_callback: process.env.CALLBACKURL})
      .then(response =&gt; {
          console.debug('got twitter token',response);
          res.redirect('https://api.twitter.com/oauth/authenticate?oauth_token=' + response.oauth_token)})
      .catch(function(err) {
          console.error('failed to authenticate twitter', 'twitter-lite', err, res.locals.host);
          console.log(err);
      });
  </code></pre>
  <blockquote>
  <p>[ { message: 'Sorry, that page does not exist', code: 34 } ]</p>
  </blockquote>
  <p>I'm having trouble with the simplest things while trying to use the twitter API. Doesn't help that there's no good examples.</p>