How to make Twitter API call through curl in unix
<p>I would like to pull the data from Twitter REST API. I have created the consumer key, secret and Access token, secret. I have tried with "Test OAuth", it generates a CURL command but if I change any one parameter then it is giving the below error.
Message: {"errors":[{"code":32,"message":"Could not authenticate you."}]}</p>

<p>Now I would like to call the twitter API using CURL in shell script for different screenNames.</p>

<p>I want a sample command some thing like mentioned below</p>

<p>curl --get '<a href="https://api.twitter.com/1.1/statuses/user_timeline.json" rel="noreferrer">https://api.twitter.com/1.1/statuses/user_timeline.json</a>' --data 'count=2&amp;screen_name=aswin' APIKEY:"xxxxxx",Acesstoken:"yyyyyyyy"</p>

<p>Thanks in advance.</p>

<p>Regards,
Aswin</p>