Method: Mints::Contact#create_appointment
- Defined in:
- lib/contact.rb
#create_appointment(data) ⇒ Object
Create Appointment.
Create an appointment with data.
Parameters
- data
-
(Hash) – Data to be submited.
Example
data = {
"object_model": "products",
"object_id": 1,
"title": "New Appointment",
"start": "2021-11-25T14:15:00+00:00",
"end": "2022-01-01T13:00:00+00:00"
}
@data = @mints_contact.create_appointment(data)
406 407 408 |
# File 'lib/contact.rb', line 406 def create_appointment(data) return @client.raw("post", "/contacts/appointments", nil, data_transform(data)) end |