classifyImageUrl method

Future<ClassifiedImages> classifyImageUrl (String url)

Implementation

Future<ClassifiedImages> classifyImageUrl(String url) async {
  String token = this.iamOptions.accessToken;
  var response = await http.get(
    _getUrl("classify", url),
    headers: {
      HttpHeaders.authorizationHeader: "Bearer $token",
      HttpHeaders.acceptLanguageHeader: this.language ?? Language.ENGLISH,
    },
  ).timeout(const Duration(seconds: 360));
  return ClassifiedImages(json.decode(response.body));
}