christhopherguerra / java-twitter

Automatically exported from code.google.com/p/java-twitter
Apache License 2.0
0 stars 0 forks source link

Should add max_id parameter to SearchRequest #11

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Twitter Search API supports max_id parameter on Search, but java-twitter 
does not support 
this on the SearchRequest. This parameter is not documented but has been 
confirmed through 
testing and by the Twitter API Google Group

What is the expected output? What do you see instead?

Search API will return all tweets with a status_id up to and including the 
"max_id", if specified.

What version of the product are you using? On what operating system?

java-twitter-0.9-SNAPSHOT

Please provide any additional information below.

Adding the following code in SearchRequest.java will do the trick

-----

public Builder maxId(long maxId) {
      return parameter("max_id", Long.toString(maxId));
    }

Original issue reported on code.google.com by twitcaps...@gmail.com on 15 Aug 2009 at 10:02

GoogleCodeExporter commented 8 years ago

Original comment by dclinton on 15 Aug 2009 at 10:10

GoogleCodeExporter commented 8 years ago
Fixed in r160.  Please verify.

Original comment by dclinton on 15 Aug 2009 at 10:11