hi guys…I am beginner , so please bear with me.
I am trying to fetch status using curl command.I have created app and have keys and secret keys.
I am hitting using below curl command. but it is giving timeout.do I need to add more.I tried to search over net about it, but nothing came out.
curl --get ‘https://api.twitter.com/1.1/statuses/user_timeline.json’ --data ‘count=10&screen_name=twitterapi’ --header ‘Authorization: OAuth oauth_consumer_key=“ZtpLGXXXX”, oauth_nonce=“9bd01XXXXXXXX”, oauth_signature=“qkwhbSTXXXXXXX”, oauth_signature_method=“HMAXXX”, oauth_timestamp=“1417520634”, oauth_token=“2915XXXXXXXXXXXX”, oauth_version=“1.0”’ --verbose
output is :
- Adding handle: conn: 0x81894d8
- Adding handle: send: 0
- Adding handle: recv: 0
- Curl_addHandleToPipeline: length: 1
-
- Conn 0 (0x81894d8) send_pipe: 1, recv_pipe: 0
- Trying X.X.X.X…
- Connected to api.twitter.com (X.X.X.X) port 443 (#0)
- successfully set certificate verify locations:
- CAfile: none
CApath: /etc/ssl/certs
- SSLv3, TLS handshake, Client hello (1):
} [data not shown]
0 0 0 0 0 0 0 0 --:–:-- 0:05:00 --:–:-- 0
- Closing connection 0
curl: (28) Operation timed out after 300455 milliseconds with 0 out of 0 bytes r
Thanks in advance.