Module: BitrixWebhook::CRM::STATUS
- Defined in:
- lib/bitrix_webhook/CRM/status.rb
Class Method Summary collapse
Class Method Details
.base_url(method) ⇒ Object
5 6 7 |
# File 'lib/bitrix_webhook/CRM/status.rb', line 5 def self.base_url(method) "https://#{BitrixWebhook.bitrix24_url}/rest/#{BitrixWebhook.webhook_user}/#{ BitrixWebhook.hook}/crm.status.#{method}?" end |
.list ⇒ Object
9 10 11 12 13 14 15 16 |
# File 'lib/bitrix_webhook/CRM/status.rb', line 9 def self.list get_url = base_url('list').to_s begin JSON.parse(HTTP.get(get_url).body) rescue => e {error:e}.to_json end end |