title: nodejs node-libcurl HTTP Authorisation - problems with Bearer Auth Token
body: <p>I'm coding a nodejs app to retrieve a transcript file from a site via the API. <br> If I use a curl command line everything works fine but I'm getting an</p>
  <blockquote>
  <p>&quot;Authoristaion Required&quot;</p>
  </blockquote>
  <p>status code back from my nodejs code.</p>
  <p>I'm using the &quot;node-libcurl&quot; library and I'm trying to pass the Authorisation code by:</p>
  <pre><code>const curl = new Curl();
  .....
  curl.setopt(Curl.option.XOAUTH2_BEARER, &quot;xxxxxxxxxxxxxxxxx&quot;);
  .....
  </code></pre>
  <p>where xxxxxxxxxxxxxxxx is the Bearer authorization code.
  Is this syntax incorrect?</p>