module RubyVibe::Calls::Info
Public Instance Methods
get_account_data()
click to toggle source
# File lib/ruby-vibe/calls/info.rb, line 5 def get_account_data client.action(RubyVibe::URLS::GET_ACCOUNT_INFO) end
get_online(ids=[])
click to toggle source
# File lib/ruby-vibe/calls/info.rb, line 28 def get_online(ids=[]) payload = { ids: ids } client.action(RubyVibe::URLS::GET_ONLINE, payload: payload) end
get_user_details(user_id)
click to toggle source
# File lib/ruby-vibe/calls/info.rb, line 20 def get_user_details(user_id) payload = { id: user_id } client.action(RubyVibe::URLS::GET_USER_DETAILS, payload: payload) end
set_webhook(url, events: [], send_name: true, send_photo: true)
click to toggle source
# File lib/ruby-vibe/calls/info.rb, line 9 def set_webhook(url, events: [], send_name: true, send_photo: true) payload = { url: url, event_types: events, send_name: send_name, send_photo: send_photo } client.action(RubyVibe::URLS::SET_WEBHOOK, payload: payload) end