Chuvi-w / twitcurl

Automatically exported from code.google.com/p/twitcurl
0 stars 0 forks source link

Calling timelineUserGet() will return erroneous data. #31

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Call timelineUserGet()
2.
3.

What is the expected output? What do you see instead?
Expected user timeline information, received garbage.

What version of the product are you using? On what operating system?
Latest as of 5/3/2012.

Please provide any additional information below.
Here is part 1 of the fix.  In twitCurl::timelineUserGet() the lines below used 
to incorrectly use TWITCURL_URL_SEP_QUES instead of TWITCURL_URL_SEP_AMP.

   if ( includeRetweets )
   {
      buildUrl += twitCurlDefaults::TWITCURL_URL_SEP_AMP + twitCurlDefaults::TWITCURL_INCRETWEETS;
   }

   if ( trimUser )
   {
      buildUrl += twitCurlDefaults::TWITCURL_URL_SEP_AMP + twitCurlDefaults::TWITCURL_TRIMUSER;
   }

Part 2 of the fix is that TWITCURL_INCRETWEETS and TWITCURL_TRIMSUSER should be 
defined as below with "=true" instead of "=1":

    const std::string TWITCURL_TRIMUSER = "trim_user=true";
    const std::string TWITCURL_INCRETWEETS = "include_rts=true";

Original issue reported on code.google.com by greggw...@gmail.com on 3 May 2012 at 9:31

GoogleCodeExporter commented 8 years ago
Thanks! Fixed it in rev 84.

Original comment by swatkat....@gmail.com on 3 Jun 2012 at 9:09