easyvkapi 1.0.1 copy "easyvkapi: ^1.0.1" to clipboard
easyvkapi: ^1.0.1 copied to clipboard

The simplest library for working with VK.

EasyVKApi #

EasyVKApi - простая и легковесная библиотека для работы с VK API

Ccылки #

Примеры

Документация VK API

Установка #

pub.dev

Примеры #

VK Api #

import "package:easyvkapi/easyvkapi.dart";

void main() async {
  String token = "";
  VKApi vkApi = VKApi(token: token);

  Map user = await vkApi.method("users.get", {"user_ids": 1});
  print(user);
}

Longpoll #

import 'package:easyvkapi/easyvkapi.dart';

void main() async {
  print("Стартуем!");
  String token = "";
  int groupId = 0;

  VKApi vkApi = VKApi(token: token);
  VKGroupLongpoll vkGroupLongpoll =
      VKGroupLongpoll(vkApi: vkApi, groupId: groupId);

  vkGroupLongpoll.startPolling();
  vkGroupLongpoll.polling().listen((event) async {
    print(event);
  });
}
1
likes
125
pub points
0%
popularity

Publisher

unverified uploader

The simplest library for working with VK.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

http

More

Packages that depend on easyvkapi