Class: Zoro::Api
- Inherits:
-
Object
- Object
- Zoro::Api
- Defined in:
- lib/zoro/api.rb
Instance Method Summary collapse
Instance Method Details
#format_url(mod, method) ⇒ Object
5 6 7 |
# File 'lib/zoro/api.rb', line 5 def format_url(mod, method) "https://crm.zoho.com/crm/private/xml/#{mod}/#{method}" end |
#insert_records(record) ⇒ Object
9 10 11 12 13 |
# File 'lib/zoro/api.rb', line 9 def insert_records(record) url = format_url(record.zoho_module, "insertRecords") xml = record.to_xml Zoro.http_connection.get(url, :xmlData => xml, :newformat => 1, :authtoken => Zoro.auth_token, :scope => 'crmapi') end |