GET

/api/v1/notifications

Request Code

Last Update : 2019.07.15
// set request
$request = new \MastodonApi\Notifications\GetRequest();
$request->max_id = '{max_id}';
$request->since_id = '{since_id}';
$request->min_id = '{min_id}';
$request->limit = {limit};
$request->exclude_types = ['{exclude_types}'];
$request->account_id = '{account_id}';
$mastodonApi->notifications->get('{id}', $request);

Response Data

Last Update : 2019.07.15
[0] => MastodonApi\Entities\Notification Object
(
	[id] => {id}
	[type] => {type}
	[created_at] => {created_at}
	[account] => MastodonApi\Entities\Account Object
	[status] => MastodonApi\Entities\Status Object
)

AdSense