Do a redirect to the authorization URL received from calling the syncronization endpoint.
When the syncronization is successful, we will call your callback URL (as setup while initializing the syncronization) and return the reference sent in the first step as a query parameter.
Confirm that your server can conclude a TLSv1.2 connection. Most up-to-date software have this capability.
Do not disable SSL
Prepare your parameters
Your pro-filr email
is a compulsory parameter. If you are not a registered user on pro-filr, you can create an account here https://www.pro-filr.com/account
Initialize a Syncronization
$curl = curl_init();
$email = "firstname.lastname@example.org";
CURLOPT_RETURNTRANSFER => 1,
CURLOPT_URL => 'https://www.pro-filr.com/crons/prompt.php',
CURLOPT_USERAGENT => 'Profilr cURL Request',
CURLOPT_POST => 1,
CURLOPT_POSTFIELDS => array(
execid => 'PRO_COLAB15461551430871', //unique key generated from PRO-EXECUTE
action => 'RegisterSync', //POST param to Pro-filr API
user => $email,
industry => '',
desc => '',
hash => 'aab722da21be7ad07a3b72ee********', //generate a secure hash key for API authentication
search => '',
searchcity => '',
profession => '',
$response = curl_exec($curl);
$err = curl_error($curl);
// there was an error contacting the Pro-filr API
die('Curl returned error: ' . $err);
$sync = json_decode($response, true);
// there was an error from the API
print_r('API returned error: ' . $sync['message']);
Initialize a syncronization by calling our API.
When the user enters their pro-filr details, API will validate and send response when successful, API will then:
- Redirect back to a callback_url set when initializing the syncronization.
- Send a success response to your account URL.
- Validates your account on Pro-filr