vklib 0.2.5 copy "vklib: ^0.2.5" to clipboard
vklib: ^0.2.5 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 {
  final 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();
}
9
likes
130
points
40
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

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

Repository (GitHub)
View/report issues

License

BSD-3-Clause (license)

Dependencies

dotenv, http

More

Packages that depend on vklib