abraham / twitteroauth

The most popular PHP library for use with the Twitter OAuth REST API.
https://twitteroauth.com
MIT License
4.29k stars 1.71k forks source link

GET method with parameters doesn't work #584

Closed olivernight closed 7 years ago

olivernight commented 7 years ago

Hello Abraham,

I install your library with composer on my web application but i have some troubles to make a GET request with some parameters.

When i make a request without parameter : $this->service->get('statuses/home_timeline') => it's work. But when i make the following request : $this->service->get('users/show', ['user_id' => '2244994945']) => i have aways the following error : 50 User not found.

When i try to reuse you example code : $statuses = $connection->get("search/tweets", ["q" => "twitterapi"]); => i have an error 25 Query parameters are missing.

I have the feeling my parameters are not in the request.

Thanks for your help.

Oliver

olivernight commented 7 years ago

Ok the problem as in my code... Sorry...