Delete User
unknown
plain_text
a year ago
688 B
6
Indexable
$form_curl = array( 'id' => $request->id // diisi nilai id user ); $postdata = json_encode($form_curl); $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => 'https://www.sistemweb.my.id/delete-register', CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => '', CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 0, CURLOPT_FOLLOWLOCATION => true, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => 'DELETE', 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