Mastod...Account(3pm)

πŸ“¦
version 0.017 Β· 2 versions
  • 0.017 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 0.017 Β· alpine 3.24
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– 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 account
  • username β€” the username of the account
  • acct β€” equals username for local users, and includes @domain for remote ones (so you can tell where they're from, iykyk 🌍)
  • display_name β€” the account's display name
  • locked β€” a boolean for when the account cannot be followed without waiting for approval first πŸ”’
  • created_at β€” the time the account was created
  • followers_count β€” the number of followers for the account
  • following_count β€” the number of accounts the given account is following
  • statuses_count β€” the number of statuses the account has made
  • note β€” biography of user
  • url β€” URL of the user's profile page (can be remote)
  • avatar β€” URL to the avatar image
  • avatar_static β€” URL to the avatar static image (gif)
  • header β€” URL to the header image
  • header_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 to get_account
  • followers β€” a shortcut to followers
  • following β€” a shortcut to following
  • statuses β€” a shortcut to statuses
  • follow β€” a shortcut to follow
  • unfollow β€” a shortcut to unfollow
  • remote_follow β€” a shortcut to remote_follow
  • report β€” a shortcut to report
  • block β€” a shortcut to block
  • unblock β€” a shortcut to unblock
  • mute β€” a shortcut to mute
  • unmute β€” a shortcut to unmute
  • relationship β€” a shortcut to relationships
  • authorize β€” a shortcut to authorize_follow
  • reject β€” a shortcut to reject_follow

πŸ‘‘ AUTHOR πŸ‘‘

  • JosΓ© JoaquΓ­n Atria <jjatria@cpan.org>

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