title: Node.js Axios HTTP request with bearer token returning undefined
body: <p>I've seen many posts on Stack that are close to what I need, but don't fully answer my question (I'm pretty green with Node). I'm working on connecting a Twitch/<a href="https://tiltify.com/" rel="nofollow noreferrer">Tiltify</a> donation campaign to a Raspberry Pi via Node.js/Axios. I'd like the Pi to regularly check for new donations, then activate physical circuits (solenoid valves etc.) to be viewed live on the stream. Here's my code so far:</p>
  <pre><code>const axios = require('axios');
  
  axios.get('URL_GOES_HERE', {
    headers: {
      'Authorization' : 'Bearer MY_TILTIFY_ACCESS_TOKEN'
    }
  })
    .then(response =&gt; {
      console.log(response.data.url);
      console.log(response.data.explanation);
    })
    .catch(error =&gt; {
      console.log(error);
    });
  </code></pre>
  <p>I assume that <code>MY_TILTIFY_ACCESS_TOKEN</code> is the access token I generated from within my Tiltify account. I'm confused, however, about what value to put in <code>URL_GOES_HERE</code>. The somewhat sparse <a href="https://tiltify.github.io/api/topics/authentication.html" rel="nofollow noreferrer">Tiltify API docs</a> give two possible URLS: <code>https://tiltify.com/oauth/authorize</code> and <code>https://tiltify.com/oauth/token</code>. Or am I supposed to put my bearer credentials directly into the URL of a useful request, like <code>https://tiltify.com/api/v3/user</code>? I've tried all three, and I just get <code>undefined undefined</code> in the console.</p>
  <p>A nudge in the right direction is appreciated! Thanks for your time.</p>