themattharris/tmhOAuth — Issue #17: Using examples/search.php clarification
Author: kenshin23
Created: 2011-10-21 03:51:31+00:00
State: open

Hi, first of all, thanks a lot for this library, it sure seems like it is easy enough to learn.
With that said, I have a question regarding the use of this example, as it's not very clear to me.

I'm keeping the code mostly as-is, except for the parameters:
```
$params = array(
'q' => 'Search Query',
// 'since_id' => 'Get results since this ID (or leave blank for earliest allowed)',
// 'pages' => 'How many pages should be retrieved?',
// 'rpp' => 'Results per page (default 15)',
// 'max_id' => 'Max ID to accept. This isn\'t sent to Search but instead used to filter the received results',
// 'geocode' => 'Geo co-ordinates (e.g. 37.781157,-122.398720,1mi)',
// 'lang' => 'Restrict results to a specific language? (en,fr,de etc)'
);
```

If I load the page on my test server (question: is this meant to be loaded from a web browser?) I get this:
Strict Standards: Non-static method tmhUtilities::read_input() should not be called statically in E:\xampp\htdocs\twitter2\examples\search.php on line 20
Search Query:
Notice: Undefined index: pages in E:\xampp\htdocs\twitter2\examples\search.php on line 25
Received page 1	http://search.twitter.com/search.json?page=1 There was an error. string(55) "{"error":"You must enter a query."}"

Any ideas on what I'm doing wrong?
Again, thank you very much.