vklib 0.3.0 copy "vklib: ^0.3.0" to clipboard
vklib: ^0.3.0 copied to clipboard

Simple framework for dart allows you to use the VK API easily.

example/vklib_example.dart

import 'package:vklib/vklib.dart';

// Тестовый файл лол)
void main() async {
  var vk = VkLib(token: '%user_token');

  final lp = UserLongPoll(vk.api);
  print('Start polling');
  lp.on(UserLongPollEventsEnum.messageNew, (event) async {
    print('${event.object[6]['from']}: ${event.object[5]}');
  });

  lp.start();
}
copied to clipboard
9
likes
130
points
40
downloads

Publisher

unverified uploader

Weekly Downloads

2024.09.26 - 2025.04.10

Simple framework for dart allows you to use the VK API easily.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

dotenv, http

More

Packages that depend on vklib