How to get appointments on specific date through API?

76 views
Skip to first unread message

Айдын Темеков

unread,
Jul 14, 2018, 2:44:09 AM7/14/18
to Easy!Appointments - Support Group
Hello!
This "http://ea-installation/index.php/api/v1/appointments" gets all registered appointments even if appointment date passed. How to get appointments on specific date?

Alex Tselegidis

unread,
Jul 14, 2018, 6:36:50 AM7/14/18
to Easy!Appointments - Support Group
Hello! 

You'll find more information in the documentation pages: 


In the appointments endpoint section you'll find the following statement: 

  • GET /api/v1/availabilities?providerId=:id&serviceId=:id[&date=:date] Get the available appointment hours for a specific provider, service and date. The date must be in the following format Y-m-d e.g. 2016-07-19.

  Alex Tselegidis, Easy!Appointments Creator

  Need a customization? Contact me in person!

 


Айдын Темеков

unread,
Jul 14, 2018, 12:38:31 PM7/14/18
to Easy!Appointments - Support Group
Hello!
Excuse me, but I don't need availabilites, I need all appointments on a specific date, for a example for 2018-07-14. But on http://sd.shopuchet.kz/index.php/api/v1/appointments I'm getting this
[ { "id": 1, "book": "2018-06-27 23:43:36", "start": "2018-06-28 09:15:00", "end": "2018-06-28 09:50:00", "hash": "e9fd8f8b00682d76a6defdf6ca990f23", "notes": "", "customerId": 4, "providerId": 8, "serviceId": 3, "googleCalendarId": null }, { "id": 2, "book": "2018-06-27 23:44:26", "start": "2018-06-28 10:00:00", "end": "2018-06-28 11:30:00", "hash": "48fc95b0768dd81abfe6b46d831f9ee6", "notes": "", "customerId": 11, "providerId": 9, "serviceId": 2, "googleCalendarId": null }, { "id": 3, "book": "2018-06-27 23:45:07", "start": "2018-06-28 10:20:00", "end": "2018-06-28 10:55:00", "hash": "3d932ed401f6ba4e0c9bf0225a98b5df", "notes": "", "customerId": 4, "providerId": 8, "serviceId": 3, "googleCalendarId": null }, { "id": 4, "book": "2018-07-14 12:22:50", "start": "2018-07-08 10:00:00", "end": "2018-07-08 12:00:00", "hash": "09498918c962091db623435c466fcb7e", "notes": "", "customerId": 12, "providerId": 8, "serviceId": 3, "googleCalendarId": null } ]

These appointments are on 2018-06-27, 2018-06-28 and so on, I don't need them.
I tried to do something like this
but result is the same

Alex Tselegidis

unread,
Jul 14, 2018, 12:46:03 PM7/14/18
to Easy!Appointments - Support Group
Oh right, for this you can use the query parameter (q) like this 

Айдын Темеков

unread,
Jul 14, 2018, 12:49:37 PM7/14/18
to Easy!Appointments - Support Group
oh, thanks a lot

Айдын Темеков

unread,
Jul 14, 2018, 1:05:39 PM7/14/18
to Easy!Appointments - Support Group
I wrote you a letter about customization
Reply all
Reply to author
Forward
0 new messages