title: curl request to Microsoft Sharepoint API?
body: <p>Is there a simple way to use a <a href="http://curl.haxx.se/docs/httpscripting.html" rel="noreferrer">cURL</a> request to the REST API to access a file on my Sharepoint account? For example</p>
  
  <pre><code>curl -i -H "Authorization: Bearer &lt;some-key-here&gt;" https://mysharepoint.com/_api/web/Lists
  </code></pre>
  
  <p>I have read all the documentation about <a href="https://msdn.microsoft.com/en-us/library/office/fp142384.aspx" rel="noreferrer">authentication and authorization for apps</a>, but in this case I don't have an "application" that I can register. I simply need an API key of some kind to use in REST requests. How can I use the REST API in this way?</p>
  
  <p>I appreciate any insight into this problem.</p>