Repository URL to install this package:
|
Version:
0.0.1 ▾
|
module AppointmentPlus
class Client
module Customers
# NOTE: default response_type is json
def customers(params = {})
params[:response_type] = 'json'
query_string = generate_query_string(params)
response = post("Customers/GetCustomers#{query_string}", params)
end
def customer(customer_id, params = {})
params[:response_type] = 'json'
params[:customer] = "#{customer_id}"
query_string = generate_query_string(params)
response = post("Customers/GetCustomers#{query_string}", params)
end
end
end
end