curl -X POST https://api.adlog.kr/api/createKeyword.php \
-H "authorization: Bearer YOUR-SECRET-KEY" \
-H "content-Type: application/json" \
-d '{"user_id":"adlog","api_menu":"1067","group_no":1,"keyword":"코코아","keyword2":"88383958946","memo":"메모"}'
<?php
$url = "https://api.adlog.kr/api/createKeyword.php";
$headers = array(
"authorization: Bearer YOUR-SECRET-KEY",
"content-Type: application/json"
);
$postData = array(
'user_id' => 'adlog',
'api_menu' => '1067',
'group_no' => 1,
'keyword' => '코코아',
'keyword2' => '88383958946',
'memo' => '메모'
);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($postData));
$response = curl_exec($ch);
curl_close($ch);
print $response;
?>