![]() |
Rackspace E-Mail API Library - Rough Draft - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22) +--- Thread: Rackspace E-Mail API Library - Rough Draft (/showthread.php?tid=29494) |
Rackspace E-Mail API Library - Rough Draft - El Forum - 04-11-2010 [eluser]Jay Logan[/eluser] Rackspace is a great e-mail service provider. I've set up some of my bigger clients with them as a solution when Google Apps was just overkill. They have a great API that lets me build in tools within CMS admin area to add / edit / delete users. You can even log in as a user if you have to. The API features a lot of other features that I haven't tackled yet. So here is a rough draft of the library I created to tap into the basic features. More API documentation can be found at here: http://api-wiki.apps.rackspace.com/api-wiki/index.php/Main_Page EXAMPLE USAGE: Code: $user_info['status'] = $this->input->post('status'); Plenty of room for improvement with this API. This is just a quick something I whipped up to test functionality. Rackspace E-Mail API Library - Rough Draft - El Forum - 04-12-2010 [eluser]Phil Sturgeon[/eluser] Good work here Jay. You might want to consider adding a config file to store your username and password, and as a tiny simplification of code: Code: if ($res == 1) { can just be: Code: return $res == 1; Good stuff though. |