Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/realmurgyl/easyvkapi
The simplest library for working with VK.
https://github.com/realmurgyl/easyvkapi
dart vk vk-api vkontakte vkontakte-api vksdk
Last synced: 5 days ago
JSON representation
The simplest library for working with VK.
- Host: GitHub
- URL: https://github.com/realmurgyl/easyvkapi
- Owner: realmurgyl
- License: mit
- Created: 2023-10-15T23:57:12.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-16T07:10:16.000Z (about 1 year ago)
- Last Synced: 2024-10-31T06:25:21.942Z (about 2 months ago)
- Topics: dart, vk, vk-api, vkontakte, vkontakte-api, vksdk
- Language: Dart
- Homepage: https://pub.dev/packages/easyvkapi
- Size: 23.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# EasyVKApi
EasyVKApi - простая и легковесная библиотека для работы с VK API
## Ccылки
[Примеры](https://github.com/realmurgyl/easyvkapi/tree/main/example)
[Документация VK API](https://dev.vk.com/ru/reference)
## Установка
[pub.dev](https://pub.dev/packages/easyvkapi)
## Примеры
### VK Api
```dart
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
```dart
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);
});
}
```