title: Twitter Oauth: How to validate and get user details through
body: <p>I followed <a href="https://dev.twitter.com/web/sign-in/implementing" rel="nofollow noreferrer">https://dev.twitter.com/web/sign-in/implementing</a> and I successfully got access token. Now I know I need to send get request to <a href="https://api.twitter.com/1.1/account/verify_credentials.json" rel="nofollow noreferrer">https://api.twitter.com/1.1/account/verify_credentials.json</a> to get user details but I'm not getting how and where to put tokens I got.</p>
  
  <p>I tried putting <strong>Authorization</strong> header as</p>
  
  <blockquote>
    <p>OAuth </p>
    
    <p>oauth_consumer_key="<em>oauth_consumer_key</em>",</p>
    
    <p>oauth_signature_method="<em>oauth_signature_method</em>",</p>
    
    <p>oauth_timestamp="1527943990", oauth_nonce="RicCiR6KbNa",oauth_version="1.0",</p>
    
    <p>oauth_signature="siKIF%2FMTFKCYokEsI7qBJrrHZHs%3D",</p>
    
    <p>oauth_token="<em>Access Token</em>",</p>
    
    <p>oauth_token_secret="<em>oauth_token_secret</em>"</p>
  </blockquote>
  
  <p>But it gives </p>
  
  <pre><code>{
      "errors": [
          {
              "code": 32,
              "message": "Could not authenticate you."
          }
      ]
  }
  </code></pre>