vlogs_sdk_dart/example/vlogs_example.dart

20 lines
527 B
Dart
Raw Normal View History

2023-05-27 01:06:18 +07:00
// 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()}");
}