16 lines
385 B
Dart
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);
|
|
}
|