This commit is contained in:
Hamza-Ayed
2024-02-18 13:44:35 +03:00
parent 4d9e76697b
commit 9d839f02ae
17 changed files with 521 additions and 30 deletions

View File

@@ -41,6 +41,21 @@ class CRUD {
}
}
Future<dynamic> getAgora({
required String channelName,
}) async {
var res = await http
.get(Uri.parse('http://localhost:8080/token?channelName=$channelName'));
if (res.statusCode == 200) {
var response = jsonDecode(res.body);
print(await response.stream.bytesToString());
return response['token'];
} else {
print(res.reasonPhrase);
}
}
Future<dynamic> getLlama({
required String link,
required String payload,