vkdart 1.1.1 copy "vkdart: ^1.1.1" to clipboard
vkdart: ^1.1.1 copied to clipboard

Package helps simplify working with the VK API. Completely wraps VK methods, has event support and much more.

example/vkdart_example.dart

// ignore_for_file: prefer_const_declarations, avoid_dynamic_calls, avoid_print

import 'package:vkdart/vkdart.dart';

void main() async {
  final accessToken = ''; // Group Token, User Token.
  final vk = VkDart(token: accessToken);
  final api = vk.getApi();

  final user = await api.users.get({'user_id': 'durov'});

  final name = user.data[0]['first_name'];
  // surname
  final surname = user.data[0]['last_name'];

  print('User details: Name = $name, Surname = $surname');
}
6
likes
0
points
68
downloads

Publisher

unverified uploader

Weekly Downloads

Package helps simplify working with the VK API. Completely wraps VK methods, has event support and much more.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

dia, dia_body, dio, json_annotation

More

Packages that depend on vkdart