mirror of
https://github.com/h7x4/unofficial_jisho_api_dart.git
synced 2025-10-06 04:53:58 +02:00
Add examples for direct parsing
This commit is contained in:
9
example/api/phrase_search.dart
Normal file
9
example/api/phrase_search.dart
Normal file
@@ -0,0 +1,9 @@
|
||||
import 'dart:convert';
|
||||
import 'package:unofficial_jisho_api/api.dart' as jisho;
|
||||
final encoder = JsonEncoder.withIndent(' ');
|
||||
|
||||
void main() async {
|
||||
await jisho.searchForPhrase('日').then((result) {
|
||||
print(encoder.convert(result));
|
||||
});
|
||||
}
|
Reference in New Issue
Block a user