Skip to content

Commit ca3868c

Browse files
committed
Update README
1 parent 001cfeb commit ca3868c

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

README.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,9 @@ import 'dart:io';
6464
import 'package:dart_api_collection/dart_api_collection.dart';
6565
6666
void main() async {
67-
ApiConfig.printLog = true; // Add log for easy debuging
67+
ApiConfig.logConfig
68+
..enableLog = true
69+
..showResponseHeader = false; // Add log for easy debuging
6870
final file = File('video.mp4');
6971
final id = await file.id; // Extension on dart:io File, exported by this package
7072
@@ -81,11 +83,13 @@ print(result?.toJson());
8183

8284
```dart
8385
void main()async{
84-
ApiConfig.printLog = true;
85-
final key = Platform.environment['DOODSTREAM_API_KEY']!;
86-
final doodstreamClient = DoodstreamApi(key);
87-
final getAccount = await doodstreamClient.rawApi.accountInfo(); // Using rawApi directive
88-
print(getAccount); // Print a JSON string
86+
ApiConfig.logConfig
87+
..enableLog = true
88+
..showResponseHeader = false;
89+
final key = Platform.environment['DOODSTREAM_API_KEY']!;
90+
final doodstreamClient = DoodstreamApi(key);
91+
final getAccount = await doodstreamClient.rawApi.accountInfo(); // Using rawApi directive
92+
print(getAccount); // Print a JSON string
8993
}
9094
```
9195

0 commit comments

Comments
 (0)