Sha256: 2f0c93881454bc8190ac2e42a5ff912dc311846f1deb4d7f4a1473dfef30caa4
Contents?: true
Size: 665 Bytes
Versions: 8
Compression:
Stored size: 665 Bytes
Contents
require 'singleton' module DataComApi class BaseApiURI include Singleton def company_contact_count(company_id) "/rest/companyContactCount/#{ company_id }.json" end def search_contact "/rest/searchContact.json" end def search_company "/rest/searchCompany.json" end def contacts(contact_ids) "/rest/contacts/#{ contact_ids.join(',') }.json" end def partner_contacts(contact_ids) "/rest/partnerContacts/#{ contact_ids.join(',') }.json" end def partner "/rest/partner.json" end def user "/rest/user.json" end end ApiURI = BaseApiURI.instance end
Version data entries
8 entries across 8 versions & 1 rubygems