POST

/api/v1/accounts/:id/follow

Request Code

Last Update : 2019.07.09
// set request
$request = new \MastodonApi\Accounts\FollowRequest();

$mastodonApi->accounts->follow($this->request->getPost('{id}'), $request);

Response Data

Last Update : 2019.07.09
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}
)
id string
following bool
followed_by bool
blocking bool
blocked_by bool
muting bool
muting_notifications bool
requested bool
domain_blocking bool
showing_reblogs bool
endorsed bool

AdSense