I'm sorry I have to write this thread. I have looked at several API threads to figure out how to make this API GET work in B4A. Copied from Postman:
OkHttpClient client = new OkHttpClient().newBuilder()
.build();
MediaType mediaType = MediaType.parse("text/plain");
RequestBody body = RequestBody.create(mediaType, "");
Request request = new Request.Builder()
.url("
http://airsports.no/api/v1/contests/")
.method("GET", body)
.addHeader("Authorization", "Bearer .....................")
.build();
Response response = client.newCall(request).execute();
Some code exampel in B4A please.