If you have enabled synchronization of your membership data between your site and ours, you can configure our widgets or API to automatically prepopulate your member data (name, email, address, membership id, etc) in our registration pages so that they do not have to retype it.
Search our help articles for information on setting up membership sync.
Once the system is established, you can pass your specific member's hash code to our widget and we will take care of the rest. Below is an example of how you can obtain member's hashed id and pass it to the widget :
// make sure you include this required MegAPI helper class you downloaded from our site
// instantiate your helper class by providing your API and Signature here
// You can obtain your API and Signature in the API section of your profile after you log in
$megAPI = new MEG_API('YOUR_API_KEY_HERE','YOUR_API_SIGNATURE_HERE');
// Specify 'json' as the format. All of our APIs return json encoded data
$megAPI->format="json"; // json is the default format
// Specify to decode the returned string into a true JSON object
$megAPI->decode_json = true;
// Create array of parameters to send to the API
// Please refer to the API documentation for exact parameters that a specific API call expects
$params = array(
// Make a request to a specific API endpoint. In this particular example, you are making a GET
// request to /account/member-code-hash/.
$results = $megAPI->get('account/member-code-hash/', $params);