How does the ajax.php work?

So I am trying to write a python script that would read events in a FreePBX Local Calendar and based on that even, log dynamic agents in/out of a queue. The events for each day will basically be an agent’s extension. For context, that event indicates which agent is on call that day. I managed to cobble a script together that should use http://myFreePBX_IP/admin/ajax.php?command=getcalendar&calendar=CalendarName to retrieve the calendar name. I get the following error {"error":"ajaxRequest declined"}. I am attempting to access that URL as the admin user. Are there any settings I should be enabling before I can hit that endpoint?

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.