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
- .base_url ⇒ Object
- .base_url=(base_url) ⇒ Object
- .block_user ⇒ Object
- .delete_messages ⇒ Object
- .edit_text ⇒ Object
- .get_admins ⇒ Object
- .get_blocked_users ⇒ Object
- .get_events ⇒ Object
- .get_info ⇒ Object
- .get_members ⇒ Object
- .pin_message ⇒ Object
- .send_text ⇒ Object
- .set_about ⇒ Object
- .set_rules ⇒ Object
- .set_title ⇒ Object
- .unblock_user ⇒ Object
- .unpin_message ⇒ Object
Class Method Details
.base_url ⇒ Object
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_user ⇒ Object
49 50 51 |
# File 'lib/vkteamsbot/urls_api.rb', line 49 def self.block_user @@base_url + '/chats/blockUser' end |
.delete_messages ⇒ Object
19 20 21 |
# File 'lib/vkteamsbot/urls_api.rb', line 19 def self. @@base_url + '/messages/deleteMessages' end |
.edit_text ⇒ Object
16 17 18 |
# File 'lib/vkteamsbot/urls_api.rb', line 16 def self.edit_text @@base_url + '/messages/editText' end |
.get_admins ⇒ Object
25 26 27 |
# File 'lib/vkteamsbot/urls_api.rb', line 25 def self.get_admins @@base_url + '/chats/getAdmins' end |
.get_blocked_users ⇒ Object
31 32 33 |
# File 'lib/vkteamsbot/urls_api.rb', line 31 def self.get_blocked_users @@base_url + '/chats/getBlockedUsers' end |
.get_events ⇒ Object
10 11 12 |
# File 'lib/vkteamsbot/urls_api.rb', line 10 def self.get_events @@base_url + '/events/get' end |
.get_info ⇒ Object
22 23 24 |
# File 'lib/vkteamsbot/urls_api.rb', line 22 def self.get_info @@base_url + '/chats/getInfo' end |
.get_members ⇒ Object
28 29 30 |
# File 'lib/vkteamsbot/urls_api.rb', line 28 def self.get_members @@base_url + '/chats/getMembers' end |
.pin_message ⇒ Object
43 44 45 |
# File 'lib/vkteamsbot/urls_api.rb', line 43 def self. @@base_url + '/chats/pinMessage' end |
.send_text ⇒ Object
13 14 15 |
# File 'lib/vkteamsbot/urls_api.rb', line 13 def self.send_text @@base_url + '/messages/sendText' end |
.set_about ⇒ Object
37 38 39 |
# File 'lib/vkteamsbot/urls_api.rb', line 37 def self.set_about @@base_url + '/chats/setAbout' end |
.set_rules ⇒ Object
40 41 42 |
# File 'lib/vkteamsbot/urls_api.rb', line 40 def self.set_rules @@base_url + '/chats/setRules' end |
.set_title ⇒ Object
34 35 36 |
# File 'lib/vkteamsbot/urls_api.rb', line 34 def self.set_title @@base_url + '/chats/setTitle' end |
.unblock_user ⇒ Object
52 53 54 |
# File 'lib/vkteamsbot/urls_api.rb', line 52 def self.unblock_user @@base_url + '/chats/unblockUser' end |
.unpin_message ⇒ Object
46 47 48 |
# File 'lib/vkteamsbot/urls_api.rb', line 46 def self. @@base_url + '/chats/unpinMessage' end |