title: SharePoint Rest API how to get Access Token?
body: <p>Just starting to work with SharePoint and Microsoft authentication and trying to get a SharePoint List into a JavaScript App. From Microsoft documentation, I need to use the following:</p>
  <pre><code>GET https://{site_url}/_api/web/lists/GetByTitle('List Title')
  Authorization: &quot;Bearer &quot; + accessToken
  Accept: &quot;application/json;odata=verbose&quot;
  </code></pre>
  <p>Have searched everywhere to find an definitive answer to how to obtain this accessToken. All the documentation I can find from Microsoft seem to be out of date. Does anyone know the current method to obtain an accessToken?</p>