. * */ namespace Friendica\Module\Api\Mastodon; use Friendica\Core\System; use Friendica\DI; use Friendica\Module\BaseApi; /** * @see https://docs.joinmastodon.org/methods/statuses/scheduled_statuses/ */ class ScheduledStatuses extends BaseApi { /** * @param array $parameters * @throws \Friendica\Network\HTTPException\InternalServerErrorException */ public static function rawContent(array $parameters = []) { self::checkAllowedScope(self::SCOPE_READ); $uid = self::getCurrentUserID(); if (isset($parameters['id'])) { System::jsonExit(DI::mstdnScheduledStatus()->createFromId($parameters['id'], $uid)); } $request = self::getRequest([ 'limit' => 20, // Max number of results to return. Defaults to 20. 'max_id' => 0, // Return results older than ID 'since_id' => 0, // Return results newer than ID 'min_id' => 0, // Return results immediately newer than ID ]); System::jsonExit([]); } }