Mastod...Account(3pm)
π Mastodon::Entity::Account β the perl manual page, but make it cute π
okay bestie, welcome to the Mastod...Account(3pm) page πΈ this one lives in the User Contributed Perl Documentation corner of your man pages, and it's all about Mastodon::Entity::Account β aka one (1) Mastodon user account, wrapped up in a Perl object like a little gift π
β¨ NAME β¨
Mastodon::Entity::Account β a Mastodon user account π
π¦ DESCRIPTION π¦
okay so first things first, and this is important: do not build this object yourself. like, do not. it is not for manual creation, no cap π
ββοΈ it's meant to be generated from the data you get back from a Mastodon server, using the coercions over in Mastodon::Types. the coercion does the work, you just vibe π
for current information, go check the Mastodon API documentation here: <https://github.com/tootsuite/documentation/blob/master/Using-the-API/API.md#account>
π ATTRIBUTES π
every account object comes with these, and they're all lowkey iconic:
idβ the ID of the accountusernameβ the username of the accountacctβ equalsusernamefor local users, and includes@domainfor remote ones (so you can tell where they're from, iykyk π)display_nameβ the account's display namelockedβ a boolean for when the account cannot be followed without waiting for approval first πcreated_atβ the time the account was createdfollowers_countβ the number of followers for the accountfollowing_countβ the number of accounts the given account is followingstatuses_countβ the number of statuses the account has madenoteβ biography of userurlβ URL of the user's profile page (can be remote)avatarβ URL to the avatar imageavatar_staticβ URL to the avatar static image (gif)headerβ URL to the header imageheader_staticβ URL to the header static image (gif)
π METHODS π
this class hands you a bunch of convenience methods, and they are exactly what they sound like. each one is a shortcut that passes the appropriate identifier of the current object as the first argument to the corresponding method in Mastodon::Client. so you don't have to dig the id out yourself β it's giving main character energy, it does it for you β¨
fetchβ a shortcut toget_accountfollowersβ a shortcut tofollowersfollowingβ a shortcut tofollowingstatusesβ a shortcut tostatusesfollowβ a shortcut tofollowunfollowβ a shortcut tounfollowremote_followβ a shortcut toremote_followreportβ a shortcut toreportblockβ a shortcut toblockunblockβ a shortcut tounblockmuteβ a shortcut tomuteunmuteβ a shortcut tounmuterelationshipβ a shortcut torelationshipsauthorizeβ a shortcut toauthorize_followrejectβ a shortcut toreject_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. slay π
and that's the whole page, bestie!! π this was perl v5.36.0, dated 2022-11-03, from the Mastod...Account(3pm) manual β go forth and be so normal about accounts πΈπ
π¦ where this page comes from
- debian bookworm: libmastodon-client-perl 0.017-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libmastodon-client-perl 0.017-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libmastodon-client-perl 0.017-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libmastodon-client-perl 0.017-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libmastodon-client-perl 0.017-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms