A PHP class for Lemmy.
<?php require("lemmy.class.php"); $url = "https://lemmy.glasgow.social"; $lemmy = new lemmy($url); $auth_token = $lemmy->login("YOUR_USERNAME", "YOUR_PASSWORD"); $post['name'] = "Test Post"; $post['url'] = "https://glasgow.social"; $post['body'] = "A comment can go here"; $post['community_id'] = "5"; $post['auth'] = $auth_token; $lemmy->createPost($post); ?>