Sha256: dcb6c0fd55e8528723238153f1eedd906d2a212c4b90f37ec36e540b1909ef78
Contents?: true
Size: 402 Bytes
Versions: 5
Compression:
Stored size: 402 Bytes
Contents
require 'faraday' module Zoro class Api def format_url(mod, method) "https://crm.zoho.com/crm/private/xml/#{mod}/#{method}" end 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 end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
zoro-0.0.5 | lib/zoro/api.rb |
zoro-0.0.4 | lib/zoro/api.rb |
zoro-0.0.3 | lib/zoro/api.rb |
zoro-0.0.2 | lib/zoro/api.rb |
zoro-0.0.1 | lib/zoro/api.rb |