johnson-pkt / twitcurl

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

Favorites URLs are incorrect now #59

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hi there;
i try to use favoriteCreate function and i find it not working and it give this 
message:"{"errors":[{"message":"Sorry, that page does not exist","code":34}]}"
i check twitcurlurls.h file to find what the problem and i find that Favorites 
URLs are written incorrect way
const std::string TWITCURL_FAVORITECREATE_URL = TWITCURL_BASE_URL + 
"favorites/create/";
like Status URLs:
const std::string TWITCURL_RETWEET_URL = TWITCURL_BASE_URL + 
"statuses/retweet/";
but twitter change the syntax to like this:
https://api.twitter.com/1.1/favorites/create.json?id=243138128959913986
rather than:
https://api.twitter.com/1.1/favorites/create/241259202004267009.json

i am using last version from Github with Ubuntu server 15.04

thanks.

Original issue reported on code.google.com by NoCa...@gmail.com on 8 Jun 2015 at 10:29