mirror of
https://github.com/tiennm99/store-scraper-bot-java.git
synced 2026-05-20 07:26:56 +00:00
fix(api): add default lang and country
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
package com.miti99.storescraperbot.api.google.request;
|
||||
|
||||
public record GoogleAppRequest(String appId) {
|
||||
|
||||
public record GoogleAppRequest(String appId, String lang, String country) {
|
||||
public GoogleAppRequest(String appId) {
|
||||
this(appId, "vi", "vn");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,7 +7,7 @@ import org.junit.jupiter.api.Test;
|
||||
class GooglePlayScraperTest {
|
||||
@Test
|
||||
void testApp() {
|
||||
var request = new GoogleAppRequest("vn.kvtm.js");
|
||||
var request = new GoogleAppRequest("pool.us");
|
||||
var response = GooglePlayScraper.app(request);
|
||||
System.out.println(GsonUtil.toJson(response));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user