GET

/api/v1/accounts/relationships

Request Code

Last Update : 2019.07.09
// set request
$request = new \MastodonApi\Accounts\RelationshipsRequest();
$request->id = ['{id}'];
$mastodonApi->accounts->relationships($request);

Response Data

Last Update : 2019.07.09
Array
(
	[0] => MastodonApi\Entities\Relationship Object
	(
		[id] => {id}
		[following] => {following}
		[followed_by] => {followed_by}
		[blocking] => {blocking}
		[blocked_by] => {blocked_by}
		[muting] => {muting}
		[muting_notifications] => {muting_notifications}
		[requested] => {requested}
		[domain_blocking] => {domain_blocking}
		[showing_reblogs] => {showing_reblogs}
		[endorsed] => {endorsed}
	)
)

AdSense