From: Neil McKillop Date: Tue, 27 Jun 2023 13:38:46 +0000 (+0100) Subject: Build API URL from domain X-Git-Url: https://git.mckillop.org/gitweb/?a=commitdiff_plain;p=lemmy-api-php Build API URL from domain --- diff --git a/config.example.php b/config.example.php index c5c8b53..72cd938 100644 --- a/config.example.php +++ b/config.example.php @@ -1,6 +1,6 @@ /api/v3/"; +$lemmy_domain = ""; // e.g. lemmy.ml $username = ""; $password = ""; -$token_file = ".lemmy-api-token"; +$token_file = ".lemmy-api-token"; // this is where your token is cached, can be any location ?> diff --git a/lemmy-api.php b/lemmy-api.php index 65ad258..669d00f 100755 --- a/lemmy-api.php +++ b/lemmy-api.php @@ -1,6 +1,7 @@ #!/usr/bin/php "PERSONID [reason]",