Code Monkey home page Code Monkey logo

Comments (5)

targence avatar targence commented on July 25, 2024

Вы версию не указали.

@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.

Curter29 avatar Curter29 commented on July 25, 2024

я жутко извиняюсь, но что я делаю не так?
2014-01-31 18 04 53

from vkontakte_api.

targence avatar targence commented on July 25, 2024

Я думаю, что в запросе не использовался токен. А должен.

@VK = VkontakteApi::Client.new('kjhgdfhglksjdfli__token__shdfgksjhgkjdfhg')

from vkontakte_api.

Curter29 avatar Curter29 commented on July 25, 2024

Спасибо за помощь, хотя vk чесно пишет что
2014-01-31 19 03 46

from vkontakte_api.

7even avatar 7even commented on July 25, 2024

@Curter29 документация на vk.com/dev не всегда актуальна. Видимо, это поле возвращается только при авторизованных запросах (т.е. с токеном).

from vkontakte_api.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.