title: How to access Twitter REST API v1.1 using curl?
body: <p>Using the "Test OAuth" feature (application settings) I can generate a fully set up curl command for a specified API request:</p>
  
  <pre><code>curl --get 'https://api.twitter.com/1.1/followers/ids.json' 
    --data 'count=10&amp;cursor=-1&amp;screen_name=microsoft' 
    --header 'Authorization: OAuth 
        oauth_consumer_key="123consumer", 
        oauth_nonce="123nonce", 
        oauth_signature="123signature%3D", 
        oauth_signature_method="HMAC-SHA1", 
        oauth_timestamp="1402309080", 
        oauth_token="123-token", 
        oauth_version="1.0"' 
    --verbose 
  </code></pre>
  
  <p>This is exactly what I would like to do but with varying API requests. But just exchanging "microsoft" in above command with "google" will cause an error:</p>
  
  <pre><code>{"errors":[{"message":"Could not authenticate you","code":32}]}
  </code></pre>
  
  <p>Why is that not possible and how can I make it work?</p>
  
  <hr>
  
  <p>As far as I understand OAuth all I need for authorizing a request is the oauth-key/values listed in step G of the following chart:</p>
  
  <p><img src="https://i.stack.imgur.com/Fu2zd.png" alt="chart"></p>
  
  <hr>
  
  <p>This is the "official" answer: <a href="https://dev.twitter.com/docs/auth/authorizing-request" rel="noreferrer">Authorizing a request</a></p>