2019-12-10 16:27:09 -05:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Friendica\Module\Api\Mastodon;
|
|
|
|
|
2019-12-11 01:51:59 -05:00
|
|
|
use Friendica\Api\Mastodon\Instance as InstanceEntity;
|
2019-12-10 16:27:09 -05:00
|
|
|
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()));
|
2019-12-10 16:27:09 -05:00
|
|
|
}
|
|
|
|
}
|