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);
?>
GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.
All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.