REST Server environment

Permalink
In the REST environment to communicate with Twilio, I have written:

a REST client which makes a request of Twilio, and,
a single resource REST server which provides for call processing and relies only on a Twilio API. Although in the C5 folder structure, it doesn't interact.

Now, I need to capture the call status from Twilio and update a C5 custom table with that status. But, since this program is running outside of C5, I need to recreate an environment for the limited amount of interaction needed.

The simplest way seems to use a bit of ADODB and the existing C5 DB infrastructure -- providing logon, connection string, connection handle etc. -- as well as any appropriate defines along the way.

(It seems that setting up a new connection might be as much if not more costly than going through the C5 overhead.)

So, a C5 instance starts up in concrete/Dispatcher.php. Naturally, DB access comes pretty soon in the process, after a number of defines and checks. It seems that support for PHP time functions as well as time zones would also be useful, and users. Anything else?

I will be sorting through this today and will post my results, but if anyone has any suggestions to assist my trial and error, that will be appreciated.

 
jvansanten replied on at Permalink Best Answer Reply
Actually, I think the simplest way is just to write directly against the db through PHP, handling login/password through a service.

Easier to start from the basics and work up, rather than whittle away at complexity.