Automated Registration.

Discussion in 'Integration' started by chuckchekuri, Apr 6, 2012.

  1. chuckchekuri

    chuckchekuri New Member

    Joined:
    Jan 26, 2012
    Messages:
    3
    Hello,

    I need to create a user automatically in amember and also trigger the custom third party integration plugin to update another database table

    Anyone has an idea on what's the best way to do this?

    Regards,
    Chuck
  2. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,274
    When user should be created? And how you want to do this?
    In regards to third-party database update, this will work by default, if you have plugin that do for that database already.
  3. chuckchekuri

    chuckchekuri New Member

    Joined:
    Jan 26, 2012
    Messages:
    3
    I have the integration working and when I create a user in amember it creates the user in my application database.

    What I want to create individual users in amember from a php script and have the user appear in my application database through the intergration plugin.

    What is best way to do this?
  4. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,274
    Here is an example how you can create user from other php script :
    PHP:
    include "/amember/bootsrap.php";
    $di Am_Di::getInstance();
    $user $di->userRecord;
    $user->login='login';
    $user->password 'pass';
    $user->email 'email'
    $user->insert();

Share This Page