You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
467 B
18 lines
467 B
<?php
|
|
|
|
$headers = array(
|
|
'Content-Type: multipart/form-data',
|
|
'Authorization: Bearer VzRpzibilhWlKI6vz67lFtwoHb299EMI3elL1Eaz5gx'
|
|
);
|
|
$message = array(
|
|
'message' => 'Hello, Line~'
|
|
);
|
|
$ch = curl_init();
|
|
curl_setopt($ch , CURLOPT_URL , "https://notify-api.line.me/api/notify");
|
|
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
|
|
curl_setopt($ch, CURLOPT_POST, true);
|
|
curl_setopt($ch, CURLOPT_POSTFIELDS, $message);
|
|
$result = curl_exec($ch);
|
|
curl_close($ch);
|
|
|
|
?>
|