This repository has been archived on 2023-11-13. You can view files and clone it, but cannot push or open issues or pull requests.
imagini/web_native/lib/services/exampleapi.dart
2021-01-06 16:12:32 -05:00

11 lines
325 B
Dart

import 'dart:async';
import 'package:http/http.dart' as http;
Future<String> exampleApi(String orgid) async {
http.Response response = await http.get(
Uri.encodeFull("https://www.example.com/api"),
);
print("Respone ${response.body.toString()}");
//Returns 'true' or 'false' as a String
return response.body;
}