"; var_dump( $pubkey, $seckey ); echo ""; exit; //API Url //$url = 'https://www.refersion.com/api/new_affiliate'; $url = 'https://www.refersion.com/api/check_account'; //Initiate cURL. $ch = curl_init($url); //The JSON data. $data = [ "refersion_public_key" => $pubkey, "refersion_secret_key" => $seckey ]; //Encode the array into JSON. $jsonDataEncoded = json_encode($data); //Tell cURL that we want to send a POST request. curl_setopt($ch, CURLOPT_POST, 1); //Attach our encoded JSON string to the POST fields. curl_setopt($ch, CURLOPT_POSTFIELDS, $jsonDataEncoded); //Set the content type to application/json curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json')); //Execute the request $result = curl_exec($ch); echo "
";
  var_dump( $result );
  echo "
"; exit; ?>