elliothaughin/codeigniter-twitter — Issue #20: 404s when trying to GET geo/search
Author: smokinjoe
Created: 2011-10-24 21:21:36+00:00
State: open

I'm not quite sure if I was doing something wrong or what, but when attempting some of the REST API calls, I was getting 404'd and had no idea why.

I believe the problem comes from the Tweets library file and that the _apiUrl that is formed isn't valid. If you look at the formation, it appears to be missing that ../1/.. from the URL string. I cheated it by changing line 322 to look like:

$response = $this->_httpRequest(strtoupper($method), $this->_apiUrl.'/'.$this->_version[0].'/'.$path.'.json', $args);

And it fixed it up for me. Haven't run into any errors, even when using various API GETs that weren't giving me errors before the change.