getData method
- String unEncodedPath
Implementation
Future<http.Response> getData(String unEncodedPath) async {
String hostUri =
"https://$server.api.riotgames.com/$unEncodedPath?locale=$locale&api_key=$apiKey";
if (verbose == 1 || verbose == 2) {
print("Final Host URL: " + hostUri);
}
var response = await http.get(Uri.parse(hostUri),
headers: {"api_key": apiKey, "locale": locale, "size": "200"});
if (verbose == 2) {
print("Status Code: " + response.statusCode.toString());
}
return response;
}