FreePBX API for time conditions and groups

So I’m setting up FreePBX api endpoints so I can manage parts of my FreePBX installation from a different application. Because of the complexity of the application and how it determines specific things need be I don’t know if I have any alternatives.
I’ve read up on
https://wiki.freepbx.org/display/FPG/Core+Module+GraphQL+APIs
And have found it extremely well written and helpful. However I do not see anyway to use the graphQL or Restful api (it really doesn’t matter however I do prefer qql) to do this. I would like to create/update and delete both time-groups and time conditions (not necessarily at the same time). Is there a way to do this with the API? If not is there a way to create a plugin for FreePBX that could interact with time-groups and time conditions to get the same effect.

Thanks

I didn’t believe any API work had been done yet for the Time Conditions module, but I see a start on some REST stuff here:
https://git.freepbx.org/projects/FREEPBX/repos/timeconditions/browse/Api/Rest/Timeconditions.php?at=release/16.0

not sure if it’s usable yet or not.

1 Like

Hey, awesome, I will see if I can get this to work (it looks usable), will share results. Thanks

1 Like

Still messing around with it to see if I can get it to work as far as putting a time condition in via this api. I can verify that the get route does in fact work and returns an array/list of time conditions.
I’m not a PHP developer, but I am wondering how hard it would be to contribute code so that they api for this would be more full.

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