0 purchases
easyvkapi
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);
}
copied to clipboard
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);
});
}
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.