friendica/src/Module/Api/Mastodon/Instance.php

23 lines
476 B
PHP
Raw Normal View History

<?php
namespace Friendica\Module\Api\Mastodon;
2019-12-11 01:51:59 -05:00
use Friendica\Api\Mastodon\Instance as InstanceEntity;
use Friendica\Core\System;
use Friendica\Module\Base\Api;
/**
* @see https://docs.joinmastodon.org/api/rest/instances/
*/
class Instance extends Api
{
/**
* @param array $parameters
* @throws HTTPException\InternalServerErrorException
*/
public static function rawContent(array $parameters = [])
{
2019-12-11 01:51:59 -05:00
System::jsonExit(InstanceEntity::get(self::getApp()));
}
}