Module: VKTeams::API

Defined in:
lib/vkteamsbot/urls_api.rb

Constant Summary collapse

@@base_url =
"https://myteam.mail.ru/bot/v1"

Class Method Summary collapse

Class Method Details

.base_urlObject



4
5
6
# File 'lib/vkteamsbot/urls_api.rb', line 4

def self.base_url
  @@base_url
end

.base_url=(base_url) ⇒ Object



7
8
9
# File 'lib/vkteamsbot/urls_api.rb', line 7

def self.base_url=(base_url)
  @@base_url = base_url
end

.block_userObject



49
50
51
# File 'lib/vkteamsbot/urls_api.rb', line 49

def self.block_user
  @@base_url + '/chats/blockUser'
end

.delete_messagesObject



19
20
21
# File 'lib/vkteamsbot/urls_api.rb', line 19

def self.delete_messages
  @@base_url + '/messages/deleteMessages'
end

.edit_textObject



16
17
18
# File 'lib/vkteamsbot/urls_api.rb', line 16

def self.edit_text
  @@base_url + '/messages/editText'
end

.get_adminsObject



25
26
27
# File 'lib/vkteamsbot/urls_api.rb', line 25

def self.get_admins
  @@base_url + '/chats/getAdmins'
end

.get_blocked_usersObject



31
32
33
# File 'lib/vkteamsbot/urls_api.rb', line 31

def self.get_blocked_users
  @@base_url + '/chats/getBlockedUsers'
end

.get_eventsObject



10
11
12
# File 'lib/vkteamsbot/urls_api.rb', line 10

def self.get_events
  @@base_url + '/events/get'
end

.get_infoObject



22
23
24
# File 'lib/vkteamsbot/urls_api.rb', line 22

def self.get_info
  @@base_url + '/chats/getInfo'
end

.get_membersObject



28
29
30
# File 'lib/vkteamsbot/urls_api.rb', line 28

def self.get_members
  @@base_url + '/chats/getMembers'
end

.pin_messageObject



43
44
45
# File 'lib/vkteamsbot/urls_api.rb', line 43

def self.pin_message
  @@base_url + '/chats/pinMessage'
end

.send_textObject



13
14
15
# File 'lib/vkteamsbot/urls_api.rb', line 13

def self.send_text
  @@base_url + '/messages/sendText'
end

.set_aboutObject



37
38
39
# File 'lib/vkteamsbot/urls_api.rb', line 37

def self.set_about
  @@base_url + '/chats/setAbout'
end

.set_rulesObject



40
41
42
# File 'lib/vkteamsbot/urls_api.rb', line 40

def self.set_rules
  @@base_url + '/chats/setRules'
end

.set_titleObject



34
35
36
# File 'lib/vkteamsbot/urls_api.rb', line 34

def self.set_title
  @@base_url + '/chats/setTitle'
end

.unblock_userObject



52
53
54
# File 'lib/vkteamsbot/urls_api.rb', line 52

def self.unblock_user
  @@base_url + '/chats/unblockUser'
end

.unpin_messageObject



46
47
48
# File 'lib/vkteamsbot/urls_api.rb', line 46

def self.unpin_message
  @@base_url + '/chats/unpinMessage'
end