Method: CiviCrm.api_url

Defined in:
lib/civicrm.rb

.api_url(path = '') ⇒ Object



41
42
43
44
45
46
# File 'lib/civicrm.rb', line 41

def self.api_url(path = '')
  base = "#{api_base}/civicrm/extern/rest.php?#{path}"
  base += "&api_key=#{@@api_key}" if @@api_key
  base += "&key=#{@@site_key}" if @@site_key
  base
end