Scroll to navigation

Mastodon::Entity::Account(3pm) User Contributed Perl Documentation Mastodon::Entity::Account(3pm)

NAME

Mastodon::Entity::Account - A Mastodon user account

DESCRIPTION

This object should not be manually created. It is intended to be generated from the data received from a Mastodon server using the coercions in Mastodon::Types.

For current information, see the Mastodon API documentation <https://github.com/tootsuite/documentation/blob/master/Using-the-API/API.md#account>

ATTRIBUTES

The ID of the account
The username of the account
Equals "username" for local users, includes @domain for remote ones
The account's display name
Boolean for when the account cannot be followed without waiting for approval first
The time the account was created
The number of followers for the account
The number of accounts the given account is following
The number of statuses the account has made
Biography of user
URL of the user's profile page (can be remote)
URL to the avatar image
URL to the avatar static image (gif)
URL to the header image
URL to the header static image (gif)

METHODS

This class provides the following convenience methods. They act as a shortcut, passing the appropriate identifier of the current object as the first argument to the corresponding methods in Mastodon::Client.

A shortcut to "get_account".
A shortcut to "followers".
A shortcut to "following".
A shortcut to "statuses".
A shortcut to "follow".
A shortcut to "unfollow".
A shortcut to "remote_follow".
A shortcut to "report".
A shortcut to "block".
A shortcut to "unblock".
A shortcut to "mute".
A shortcut to "unmute".
A shortcut to "relationships".
A shortcut to "authorize_follow".
A shortcut to "reject_follow".

AUTHOR

José Joaquín Atria <jjatria@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2017 by José Joaquín Atria.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

2022-11-03 perl v5.36.0