Untitled

mail@pastecode.io avatar
unknown
plain_text
a month ago
729 B
8
Indexable
Never
<?php

$curl = curl_init();

curl_setopt_array($curl, [
  CURLOPT_URL => "https://musnur-shopee.spservices.my.id/api/v1/orders",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => "{\n    \"type_service\": \"followers\",\n    \"link\": \"https://shopee.co.id/sandroputraa\",\n    \"count_success\": \"1\",\n    \"process_now\": \"1\"\n}",
  CURLOPT_HTTPHEADER => [
    "Content-Type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
Leave a Comment