Calling REST services from within a controller

Permalink
Hi Guys,

I would like to call a number of REST based services from the Web Server running Concrete5. Ideally, I would like to do this in one or more controllers.

The Services are based available over HTTPS. Therefore, I'd rather not go through the headache of working this out with raw PHP but would like to use a library that I don't need to install and place simply in my /libraries/3rdParty directory.

Any hints or tips from those who may have trodden that path before?

dbaggs
 
arik replied on at Permalink Reply
I have the same exact problem. any luck?
dbaggs replied on at Permalink Reply
dbaggs
Hi Arik,

I ended up copying the library files into their own folder within the /libraries/3rdParty folder and then loading it within my controller through Loader::library('3rdParty/libraryfoldername/phpfilenamewithoutphpextension');

Hope that helps.

Dan