How to use time vs retweets


#1

Hi,

I want to trace time vs retweets of any tweets by tweets ID,.
I am following below link for it.
https://api.twitter.com/1.1/statuses/retweet/ids.json

like :

HttpWebRequest hwrequest = (HttpWebRequest)WebRequest.Create(https://api.twitter.com/1.1/statuses/retweet/321548158121435138.json);

    HttpWebResponse httpResponse = (HttpWebResponse)hwrequest.GetResponse();


    String Result = string.Empty;
    using (StreamReader rd = new StreamReader(httpResponse.GetResponseStream()))
    {
        Result = rd.ReadToEnd();
    }

Here ids is tweet id of any tweets.
Here I am getting below message
{“errors”:[{“message”:“Bad Authentication data”,“code”:215}]}
So I started to authenticate it.
I am using to Authorized by below way.
https://api.twitter.com/1/OAuth%20oauth_consumer_key=gfR62WPmiluAYx2T0OoBA&oauth_nonce=1fb02838793da69f9ca2e07d75179328&oauth_signature=BiVIfueYL5UjrXI5JDYG3A7iiQU%3D&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1365501011&oauth_token=629108636-t4AfkP1LQf1G2PI5KBQyAvZ4GrSzFcQrc7nTtfgsoauth_version=1.0

Please let me know, how I will achieve it?
Please provide the sample.
Thanks


#2

Also Please let me know how to Authenticate my app and how I do query for time vs retweets of any tweets?
Thanks


#3

Hi,
I have also tried by this way to check authentication
https://api.twitter.com/oauth/authenticate?oauth_token=hyFzKOxMsdAspBhTDoBBGhhg0TUo2de9I9zsdYinE
but not get result.

Please let me know when you will reply
Thanks


#4

Are you using an OAuth library? Something on [node:126] will help you out a lot with this.


#5

Yes, I am using OAuth library then I was able to authenticate, I was not able to get Time vs Retweets from Linq2Twitter Library. Cloud you please let me know how i will do with Httpweb Request method.
Please give me example of these to achieve Time vs retweets from any library.
Thanks


#6

What do you mean by Time vs Retweets?


#7

Hi, I want to get time vs retweets values from this api .
https://api.twitter.com/1.1/statuses/retweet/ids.json

Please have a look on this https://dev.twitter.com/docs/api/1.1/get/statuses/retweets/%3Aid
Please let me know how i can achieve this?
Thanks