title: Authenticate REST API with OAuth in VSTS/TFS 2017
body: <p>I am trying to authenticate REST call with OAuth, but I couldn't find any sample regarding this. Please be kind enough to guide me on this ( provide sample).</p>
  
  <p>I am referring below documentation from Microsoft.</p>
  
  <p><a href="https://www.visualstudio.com/en-us/docs/integrate/get-started/rest/basics" rel="nofollow noreferrer">https://www.visualstudio.com/en-us/docs/integrate/get-started/rest/basics</a></p>
  
  <p>I can authenticate this using NTLM (below is the sample I use) . There is node library available for same (<a href="https://www.npmjs.com/package/httpntlm" rel="nofollow noreferrer">https://www.npmjs.com/package/httpntlm</a>). But I need something similar for OAuth. </p>
  
  <pre><code>httpntlm.patch(options, function(err,res) {
              console.log("patch complete");
              console.log(res.body);
  })
  </code></pre>