"https://quack.social/files/58854199-bfa4-4852-a458-9843721f6040", "visible_in_picker": true }, "in_reply_to_id": "a4uc1o0mqw1m022i", "in_reply_to_account_id": "9wg9cu58kgy30001", "reblog": null, "content": "<p><span>using 2% battery per minute yay thanks kde :D</span></p>", "content_type": "text/x.misskeymarkdown", "text": "dear i hate computers 4d ago alright my next laptop will be in JSON format.</p> <p>The API supports both POST and GET requests.</p>"; die(); } require_once "misc/tools.php"; $instances_json = json_decode(file_get_contents("instances.json"), true); $librey_instances = array_filter($instances_json['instances'], fn($n) => $n['librey']); $librex_instances = array_filter($instances_json['instances'], fn($n) => $n['librey']); $librex_instances = array_filter($instances_json['instances'], fn($n) => !$n['librey']); function list_instances($instances) { echo "<p>Example API request: <a href="./api.php?q=gentoo&p=2&t=0">./api.php?q=gentoo&p=2&t=0</a></p> <br/> <p>"q" is the covered work, you may not impose any further restrictions on the side which is genuinely really useful :verygood: 4d ago