title: Android Post Request with oauth 1.0A
body: <p>I have recently started developing an <code>Android</code> application for my companies <code>Magento</code> 2 store.</p>
  
  <p>Magento has a built in <code>REST API</code> to retrieve data and it uses <code>OAuth 1.0a</code>.</p>
  
  <p>I am quite familiar with developing for android and sending HTTP requests but I have never sent one using this type of authorisation. From Magento i have generated the necessary access tokens to connect to the api and have tested them using Postman and they work correctly. The tokens i have are:</p>
  
  <ul>
  <li>Consumer Key</li>
  <li>Consumer Secret</li>
  <li>Access Token</li>
  <li>Access Token Secret</li>
  </ul>
  
  <p>I have searched around quite a bit but cannot find a solution, how do i add these to the header of a post request in <code>Java, Android</code>?</p>
  
  <p>Thanks.</p>
  
  <p>From the Magento Dev Docs:
  <code>Magento REST API uses 3-legged OAuth 1.0a protocol to authenticate the application to access the Magento service.</code></p>