WIP
This commit is contained in:
parent
4c91662ec8
commit
d06fcb7ae2
@ -5,7 +5,7 @@
|
|||||||
function fetchSeed(id) {
|
function fetchSeed(id) {
|
||||||
var HttpRequest = Packages.com.gmt2001.HttpRequest,
|
var HttpRequest = Packages.com.gmt2001.HttpRequest,
|
||||||
HashMap = Packages.java.util.HashMap,
|
HashMap = Packages.java.util.HashMap,
|
||||||
JSONObject = Packages.org.json.JSONObject
|
JSONObject = Packages.org.json.JSONObject,
|
||||||
header = new HashMap(0),
|
header = new HashMap(0),
|
||||||
json = new JSONObject('{}');
|
json = new JSONObject('{}');
|
||||||
let request = HttpRequest.getData(HttpRequest.RequestType.GET,`https://www.geoguessr.com/api/v3/games/${id}`,json.toString(),header);
|
let request = HttpRequest.getData(HttpRequest.RequestType.GET,`https://www.geoguessr.com/api/v3/games/${id}`,json.toString(),header);
|
||||||
@ -17,7 +17,7 @@
|
|||||||
function getCountryBDC(location) {
|
function getCountryBDC(location) {
|
||||||
var HttpRequest = Packages.com.gmt2001.HttpRequest,
|
var HttpRequest = Packages.com.gmt2001.HttpRequest,
|
||||||
HashMap = Packages.java.util.HashMap,
|
HashMap = Packages.java.util.HashMap,
|
||||||
JSONObject = Packages.org.json.JSONObject
|
JSONObject = Packages.org.json.JSONObject,
|
||||||
header = new HashMap(0),
|
header = new HashMap(0),
|
||||||
json = new JSONObject('{}');
|
json = new JSONObject('{}');
|
||||||
const BDC_KEY = "067c718d2bbd4a2ba8d0645e1633cac2";
|
const BDC_KEY = "067c718d2bbd4a2ba8d0645e1633cac2";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user