apiCall method
Implementation
Future<Response> apiCall(NetworkState state) async {
Uri finalEndpoint = endpoint(state.https, getFinalEndpoint(url, state));
print("GET $finalEndpoint");
return await get(
finalEndpoint,
headers: headers(state),
);
}