This library is supposed to provide an easy code to use the ionic cloud HTTP API. please visit Ionic Cloud HTTP API Docs for more information.
The current development supports Auth Endpoint Only. the deploy and push endpoints are yet to come.
- Cloud Setup:
- Generate your API token from your ionic cloud dashboard.
- Library Setup:
- Copy 'application/config/ci_ionic_cloud.php' and 'application/libraries/Ci_ionic_cloud.php' to their respected locations.
- Open 'application/config/ci_ionic_cloud.php' and paste in your APP_ID and API_TOKEN from your ionic cloud dashboard.
First of all you need to load the library in you controller
$this->load->library('ci_ionic_cloud');
-
$this->ci_ionic_cloud->auth_users_list(array('page_size'=>1,'page'=>1)); -
$this->ci_ionic_cloud->auth_users_create(array('email' => '[email protected]', //Required'password' => 'secretepassword', //Required'username' => 'somebody','name' => 'john doe','image' => 'http://www.profcoaching.org/profile/blank.png','custom' => array('birthdate' => '22/10/1999','father name' => 'Mark'))); -
$this->ci_ionic_cloud->auth_users_retrieve(array('uuid'=> 'user_id_from_cloud' //Required)); -
$this->ci_ionic_cloud->auth_users_update(array('uuid' => 'user_id_from_cloud', //Required'email' => '[email protected]','password' => 'secretepassword','username' => 'somebody','name' => 'john doe','image' => 'http://www.profcoaching.org/profile/blank.png','custom' => array('birthdate' => '22/10/1999','father name' => 'Mark'))); -
$this->ci_ionic_cloud->auth_users_delete(array('uuid'=> 'user_id_from_cloud' //Required)); -
$this->ci_ionic_cloud->auth_users_retrieve_custom_data(array('uuid'=> 'user_id_from_cloud' //Required)); -
$this->ci_ionic_cloud->auth_users_replace_custom_data(array('uuid' => 'user_id_from_cloud', //Required'new custom key' => 'new custom value','new something' => 'new something value',));GNU General Public License v 3.0
Sponsored by Coders Web Solutions