20 lines
527 B
Dart
20 lines
527 B
Dart
|
// ignore_for_file: non_constant_identifier_names
|
||
|
|
||
|
import 'package:vlogs/vlogs.dart';
|
||
|
|
||
|
void main() async {
|
||
|
final APP_ID = "72bd14c306a91fa8a590330e3898ddcc";
|
||
|
final API_KEY = "vlogs_gX9WwSdKatMNdpUClLU0IfCx575tvdoeQ";
|
||
|
|
||
|
final sdk = VLogs.create(APP_ID, API_KEY);
|
||
|
|
||
|
var request = CollectorRequest.builder()
|
||
|
.message("Hello World")
|
||
|
.source(CollectorSource.mobile.name)
|
||
|
.type(CollectorType.log.name)
|
||
|
.build();
|
||
|
|
||
|
var response = await sdk.collect(request);
|
||
|
print("Response: ${response.toJson()}");
|
||
|
}
|