mastodon_api library

Classes

Account
AccountDefaultSettingsParam
AccountPreferences
AccountProfileMetaParam
AccountsV1Service
AccountsV2Service
Announcement
AnnouncementAccount
AnnouncementStatus
Application
AppsV1Service
BlockedDomain
Conversation
Emoji
EmojiReaction
Empty
ExtendedDescription
Field
Instance
InstanceAccountsConfiguration
InstanceActivity
InstanceConfiguration
InstanceContact
InstanceMediaConfiguration
InstancePollsConfiguration
InstanceRegistrations
InstanceStatistics
InstanceStatusesConfiguration
InstanceUrlsConfiguration
InstanceUsage
InstanceUsageUsers
InstanceV1Service
InstanceV2Service
Locale
MastodonApi
MastodonRequest
MastodonResponse<D>
The class represents the response from Mastodon API.
MastodonV1Service
The class represents the Mastodon v1 services.
MastodonV2Service
The class represents the Mastodon v2 services.
MediaAttachment
MediaFocalPoints
See https://docs.joinmastodon.org/api/guidelines/#focal-points .
MediaMeta
MediaV1Service
MediaV2Service
MediaVariants
Notification
NotificationSnapshot
Represents the last read position within a user's timelines.
NotificationsV1Service
OEmbedMetadata
OEmbedService
Poll
PollOption
PositionMarker
Represents the last read position within a user's timelines.
PreviewCard
RateLimit
RegisteredApplication
Report
RetryConfig
This class represents an automatic retry configuration.
RetryEvent
This class represents the event during the retry process.
Rule
ScheduledPoll
ScheduledStatus
ScheduledStatusParams
SearchV2Service
Status
StatusContext
StatusEdit
Represents a revision of a status that has been edited.
StatusesV1Service
StatusPollParam
StatusSnapshot
Represents the last read position within a user's timelines.
StatusSource
Represents a status's source as plain text.
Suggestion
Tag
Thumbnail
ThumbnailVersion
TimelinesV1Service
Token
UsageStatistics
V2Instance
V2InstanceConfiguration
V2Search

Enums

BlockSeverity
Country
DisplayMediaSetting
HttpMethod
HttpStatus
InstanceAccountOrder
Language
Represents ISO 639 Part 1 two-letter language code.
MediaAttachmentType
MimeType
NotificationType
PostPrivacy
PreviewCardType
The type of the preview card.
ReportCategory
Scope
SearchContentType
SuggestedReason
Visibility
Represents the visibility of specific status.

Exceptions / Errors

DataNotFoundException
This object is thrown to indicate that the data associated with a particular condition does not exist on Mastodon's server.
MastodonException
This exception indicates that an unexpected error occurred when communicating with the Mastodon API.
PendingException
This exception is thrown when uploading media, etc., to indicate that the upload is in progress on Mastodon's server.
RateLimitExceededException
This exception indicates that the number of requests for a particular endpoint exceeds the rate limit defined by the Mastodon API.
UnauthorizedException
This exception is thrown to indicate that the specified access token was not authorized by the server as a result of its use in the request.