Verifikasi Email
unknown
plain_text
2 years ago
749 B
20
Indexable
$form_curl = array(
'id' => $request->id, // diisi nilai id user
'status_id' => 1 // nilai default untuk aktif 1
);
$postdata = json_encode($form_curl);
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://www.sistemweb.my.id/verification-email',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS => $postdata,
CURLOPT_HTTPHEADER => array(
'token: aW50ZWdyYXNpbW9uZXZsYXBraW4yMDI0a2VtZW5kZXNh',
'Content-Type: application/json'
),
));
$response = curl_exec($curl);
curl_close($curl);Editor is loading...
Leave a Comment