Repository URL to install this package:
|
Version:
0.0.1 ▾
|
module AppointmentPlus
class Client
module Appointments
# NOTE: appointments requires date range parameters to be passed in the below datetime format:
# {start_date: yyyymmdd, end_date: yyyymmdd}
# Without these parameters, appointments will return only the most recent appointment
# Default response_type is json
def appointments(params = {})
params[:response_type] = 'json'
query_string = generate_query_string(params)
response = post("Appointments/GetAppointments#{query_string}", params)
end
def appointment(appt_id, params = {})
params[:response_type] = 'json'
params[:appointment] = "#{appt_id}"
query_string = generate_query_string(params)
response = post("Appointments/GetAppointments#{query_string}", params)
end
end
end
end