- Topics: Active | Unanswered
Pages: 1
Topic closed
#1 2008-06-25 23:01:33
- **_nick_**
PHP API
Hi,
I've been doing a bit of work doing some very basic integration with our Enterprise Hosted solution and website (built on Joomla): the main functions are just creating new users, adding them to groups, and also checking on the number of participants in an active meeting.
For this, I'd thrown together a fairly basic PHP class to simplify some API calls and response handling. for example:
$api = new ConnectAPI();
$api->login('username', 'password');
$api->setURL(array(
"action" => "principal-list-by-field",
"value" => $email
));
var_dump($api->exec()); // true/false showing whether it worked
...and so on. Basically it's just a wrapper around some cURL functions and some (very messy) XML parsing.
I'm now trying to do a bit more with the integration than previously, and thought it'd be neat to encapsulate some of the API calls directly into the class. eg:
//instead of the above...
$api->principalListByField($email);
So here's my question. Has anyone already made this sort of thing? If not, I think that it would be a great tool - and of course, could be written for any number of languages.
Offline
#2 2010-01-23 00:21:57
- **_seo4ssl_**
Re: PHP API
Does it really works??
If so.. Thanks for it..
Offline
Pages: 1
Topic closed