@@ -15,7 +15,7 @@ repositories {
1515}
1616
1717dependencies {
18- implementation ' com.github.outscraper:outscraper-java:v1 .0.4 '
18+ implementation ' com.github.outscraper:outscraper-java:v2 .0.0 '
1919}
2020` ` `
2121
@@ -36,14 +36,14 @@ Add the dependency
3636 < dependency>
3737 < groupId> com.github.outscraper< /groupId>
3838 < artifactId> outscraper-java< /artifactId>
39- < version> v1 .0.4 < /version>
39+ < version> v2 .0.0 < /version>
4040 < /dependency>
4141` ` `
4242
4343# ## Others
4444
4545You' ll need to manually install the following JARs:
46- - [The Outscraper JAR](https://jitpack.io/com/github/outscraper/outscraper-java/v1 .0.4 /outscraper-java-v1 .0.4 .jar)
46+ - [The Outscraper JAR](https://jitpack.io/com/github/outscraper/outscraper-java/v2 .0.0 /outscraper-java-v2 .0.0 .jar)
4747- [Json](https://repo1.maven.org/maven2/org/json/json/20090211/json-20090211.jar)
4848- [Httpcomponents](https://repo1.maven.org/maven2/org/apache/httpcomponents/httpclient/4.5.13/httpclient-4.5.13.jar)
4949- [Guava](https://repo1.maven.org/maven2/com/google/guava/guava/30.1.1-jre/guava-30.1.1-jre.jar)
@@ -58,15 +58,15 @@ OutscraperClient client = new OutscraperClient("SECRET_API_KEY");
5858
5959```java
6060// Get reviews of the specific place by id
61- JSONArray results = client.googleMapsReviewsV3 (new HashMap<String, Object>() {{
61+ JSONArray results = client.googleMapsReviews (new HashMap<String, Object>() {{
6262 put("query", "ChIJrc9T9fpYwokRdvjYRHT8nI4");
6363 put("reviewsLimit", 20);
6464 put("language", "en");
6565}});
6666System.out.println(results);
6767
6868// Get reviews for places found by search query
69- JSONArray results = client.googleMapsReviewsV3 (new HashMap<String, Object>() {{
69+ JSONArray results = client.googleMapsReviews (new HashMap<String, Object>() {{
7070 put("query", "Memphis Seoul brooklyn usa");
7171 put("reviewsLimit", 20);
7272 put("limit", 20);
@@ -76,7 +76,7 @@ System.out.println(results);
7676
7777// Get only new reviews during last 24 hours
7878Integer yesterdayTimestamp = 1657980986;
79- JSONArray results = client.googleMapsReviewsV3 (new HashMap<String, Object>() {{
79+ JSONArray results = client.googleMapsReviews (new HashMap<String, Object>() {{
8080 put("query", "ChIJrc9T9fpYwokRdvjYRHT8nI4");
8181 put("sort", "newest");
8282 put("cutoff", yesterdayTimestamp);
0 commit comments