perspective_api/example/perspective_api_example.dart
2023-09-27 13:47:03 +02:00

16 lines
385 B
Dart

import 'package:perspective_api/perspective_api.dart';
void main(List<String> args) async {
final client = PerspectiveApi(
apiKey: 'AIzaSyBbovs3G9iJBycX_K_JmfXDkoi0lRj-ifA',
);
final response = await client.analyzeComment(
'Salut, belle gosse 😏',
requestedAttributes: {RequestedAttribute.flirtation},
languages: {Language.french},
);
print(response);
}