aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/vk/api.py
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2016-06-16 23:32:24 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2016-06-16 23:32:24 +0300
commiteb930123454771b80465505579d723c92b3dd84c (patch)
tree9aeded9c85edc2ae9c00ae904d252558731d93f7 /vk/api.py
parentmake "last seen" timestamps timezone-aware (diff)
downloadvk-scripts-eb930123454771b80465505579d723c92b3dd84c.tar.gz
vk-scripts-eb930123454771b80465505579d723c92b3dd84c.zip
refactoring & support more user fields
And a bunch of other minor improvements.
Diffstat (limited to '')
-rw-r--r--vk/api.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/vk/api.py b/vk/api.py
index 192b707..6b251d0 100644
--- a/vk/api.py
+++ b/vk/api.py
@@ -64,13 +64,13 @@ class API:
return str(xs)
def users_get(self, user_ids, fields=()):
- return map(User, self._call_method(
+ return map(User.from_api_response, self._call_method(
Method.USERS_GET,
user_ids=self._format_param_values(user_ids),
fields=self._format_param_values(fields)))
def friends_get(self, user_id, fields=()):
- return map(User, self._call_method(
+ return map(User.from_api_response, self._call_method(
Method.FRIENDS_GET,
user_id=str(user_id),
fields=self._format_param_values(fields)))