RelatedResults not working on 1.1

Dec 27, 2012 at 11:18 AM

 Hi!

I cannot get the 1.1 API to work with RelatedResults. Below is an example that works, until I change TwitterContext from old to new.

I enclosed the difference in Endpoints if that may help. The keys/tokens seems to work (I can get direct messages et. cetera)

Cheers!
Thomas

 

   private static void TestRelatedResults()
     {
      // Hard coded..
      var auth = new SingleUserAuthorizer
                  {
                   Credentials = new InMemoryCredentials
                                  {
                                   ConsumerKey = ConfigurationManager.AppSettings["twitterConsumerKey"],
                                   ConsumerSecret = ConfigurationManager.AppSettings["twitterConsumerSecret"],
                                   OAuthToken = ConfigurationManager.AppSettings["twitterOAuthToken"],
                                   AccessToken = ConfigurationManager.AppSettings["twitterAccessToken"]
                                  }
                  };


      //using (var twitterCtx = new TwitterContext(auth)) // <--- NOT Working
      using (var twitterCtx = new TwitterContext(auth, "https://api.twitter.com/1/", "https://search.twitter.com/"))
      {
       //Verified on both version of TwitterContext
       //AccountDemos.VerifyAccountCredentials(twitterCtx);

       //FullUrl:
       //New version
       //"https://api.twitter.com/1.1/related_results/show/284229537183707136.json"
       //Old version
       //"https://api.twitter.com/1/related_results/show/284229537183707136.json"
       List<RelatedResults> results =
        (from result in twitterCtx.RelatedResults
         where result.Type == RelatedResultsType.Show &&
               result.StatusID == 284229537183707136
         select result)
         .ToList();

       results.ForEach(result =>
                       Console.WriteLine("Name: {0}\nTweet: {1}\n", result.User.Identifier.ScreenName, result.Text));
      }
     }

Coordinator
Dec 27, 2012 at 4:35 PM

Hi Thomas,

Unfortunately, Twitter never documented RelatedResults. I added it to the API based on an early announcement in their forums, but they never supported it. Here's a post on their forums, describing their position on this endpoint:

https://dev.twitter.com/discussions/2059

Twitter used to use related_results on their own application, so it looked like they would eventually support it. An option is to visit the Twitter forums and make a case for them including and supporting it in API v1.1. In API v1.1, they removed several endpoints, but have added a few back by popular demand.

Joe

Dec 29, 2012 at 8:27 AM

Hi Joe,

I see. There is nothing to do about that then. Thanks for your reply

 

Thomas

Dec 30, 2012 at 9:33 PM

Hi again,

I am struggling a bit to get something close to this. Isn't there a way to get replies to a known tweet? I see that there are retweets, but nothing about replies in 1.1

Thanks

Thomas