Comments (5)
Вы версию не указали.
@vk.users.get(user_ids: 'id83635722', fields: 'counters', v: '5.7')
=> [{"id"=>83635722,
"first_name"=>"Илья",
"last_name"=>"Михайлович",
"counters"=>
{"albums"=>9,
"videos"=>23,
"audios"=>266,
"notes"=>0,
"photos"=>1246,
"friends"=>804,
"online_friends"=>161,
"mutual_friends"=>0,
"followers"=>56}}]
Если без версии, то можно так
@vk.users.get(uids: 83635722, fields: 'counters')
Это устаревший формат запроса уже можно сказать.
from vkontakte_api.
я жутко извиняюсь, но что я делаю не так?
from vkontakte_api.
Я думаю, что в запросе не использовался токен. А должен.
@VK = VkontakteApi::Client.new('kjhgdfhglksjdfli__token__shdfgksjhgkjdfhg')
from vkontakte_api.
Спасибо за помощь, хотя vk чесно пишет что
from vkontakte_api.
@Curter29 документация на vk.com/dev не всегда актуальна. Видимо, это поле возвращается только при авторизованных запросах (т.е. с токеном).
from vkontakte_api.
Related Issues (20)
- Непонятная ошибка HOT 2
- Proxy? HOT 1
- Одновременные запросы HOT 1
- cannot load such file -- typhoeus/adapters/faraday HOT 1
- Уберите строгие зависимости гемов HOT 4
- Как посылать сообщения в сообщества? HOT 3
- Rails 5 HOT 3
- Ограничение запросов в секунду HOT 1
- Working with VK stored procedures HOT 3
- Deprecation warning HOT 9
- Hashie::Mash#count Warning HOT 1
- Возвращаемые значения в методе wall.get HOT 1
- Поведение groups.get в test и development environment HOT 2
- :facepalm: HOT 1
- Версия API стала обязательной на вконтакте HOT 6
- Проблема с зависисмотями HOT 5
- Жив ли проект?
- id33266175 HOT 1
- vzl
- 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vkontakte_api.