File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,9 @@ import 'dart:io';
64
64
import 'package:dart_api_collection/dart_api_collection.dart';
65
65
66
66
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
68
70
final file = File('video.mp4');
69
71
final id = await file.id; // Extension on dart:io File, exported by this package
70
72
@@ -81,11 +83,13 @@ print(result?.toJson());
81
83
82
84
``` dart
83
85
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
89
93
}
90
94
```
91
95
You can’t perform that action at this time.
0 commit comments