Loading...
Changes Saved.
Error Occurred!
Home Products Blog Community Support Resellers

Members Module API Commands

*Use only on Custom Modules for login, account add, account update, account delete,  post purchase

List of Members API Commands available to Custom Modules

Example syntax: $this->members_api->_get_member_details($id);

 

Functions

_get_member_details($id)  - get the details of a member using the member ID

_get_member_mailing_lists($id) - get the mailing lists a user is subscribed to.  Returns an array with the mailing list IDs

_get_member_memberships($id) - returns an array of  the memberships a user is subscribed to

_get_member_downloads($id) - returns an array of the downloadable products the user has in his profile.

_get_member_groups($id) - returns an array of the groups the user is a member of.

_get_member_shipping($id) - returns an array of the shipping address for the user.

 

Password Decryption

JEM allows you to retrieve a user's password for decryption, if you need to pass it on to your custom module.  To do that, use the following code:

$data = $this->members_api->_get_member_details($id);
$current_password = $this->encrypt->decode($data['member_data']['password']);

You must also have the following set in your /system/application/config/config.php file:

$config['members_password_function'] = 'mcrypt';




Related Articles

  • Products Module API Commands (51.86%)
    *Use only on Custom Modules for login, product add, product update, product...
    0.00 - 2009-04-04 06:56:01
  • Coupons Module API Commands (44.95%)
    *Use only on Custom Modules for account add, post purchaseList of Content...
    0.00 - 2009-04-04 06:49:55
  • Content Module API Commands (42.64%)
    *Use only on Custom Modules for login, post purchaseList of Content API...
    0.00 - 2009-04-04 06:49:11