MisskeyのノートするAPIを叩くでやったら
このコード出てきてすげえになってる(叩けるかどうかはわからん)
言語はphp<?php
$url = 'https://api.misskey.xyz/notes/create';
$data = array('text' => 'misskeyのノートするAPIを叩く');
// use key 'http' even if you send the request to https://...
$options = array(
'http' => array(
'header' => "Content-type: application/x-www-form-urlencoded\r\n",
'method' => 'POST',
'content' => http_build_query($data)
)
);
$context = stream_context_create($options);
$result = file_get_contents($url, false, $context);
if ($result === FALSE) { /* Handle error */ }
var_dump($result);
?>
Embed Notice
HTML Code
Corresponding Notice
- Embed this notice
まっちゃてぃー。 (mattyacocacora_@misskey.io)'s status on Tuesday, 04-Oct-2022 15:23:35 JST まっちゃてぃー。