Versions in this module Expand all Collapse all v1 v1.0.1 Sep 8, 2019 v1.0.0 Sep 8, 2019 v0 v0.0.0 Aug 23, 2019 Changes in this version + const AttachmentGifv + const AttachmentImage + const AttachmentUnknown + const AttachmentVideo + const CardLink + const CardPhoto + const CardRich + const CardVideo + const ContextHome + const ContextNotifications + const ContextPublic + const ContextThread + const DurationDay + const DurationHalfDay + const DurationHalfHour + const DurationHour + const DurationMinute + const DurationQuarterDay + const DurationWeek + const NotificationFavourite + const NotificationFollow + const NotificationMention + const NotificationReblog + const ScopeAdminRead + const ScopeAdminReadAccounts + const ScopeAdminReadReports + const ScopeAdminWrite + const ScopeAdminWriteAccounts + const ScopeAdminWriteReports + const ScopeFollow + const ScopePush + const ScopeRead + const ScopeReadAccounts + const ScopeReadBlocks + const ScopeReadFavourites + const ScopeReadFilters + const ScopeReadFollows + const ScopeReadLists + const ScopeReadMutes + const ScopeReadNotifications + const ScopeReadSearch + const ScopeReadStatuses + const ScopeWrite + const ScopeWriteAccounts + const ScopeWriteBlocks + const ScopeWriteConversations + const ScopeWriteFavourites + const ScopeWriteFilters + const ScopeWriteFollows + const ScopeWriteLists + const ScopeWriteMedia + const ScopeWriteMutes + const ScopeWriteNotifications + const ScopeWriteReports + const ScopeWriteStatuses + const VisibilityDirect + const VisibilityPrivate + const VisibilityPublic + const VisibilityUnlisted + func AddAccountsToList(baseUrl, accessToken, listId string, accounts ...string) error + func AuthorizeFollowRequest(baseUrl, accessToken, accountId string) error + func BlockDomain(baseUrl, accessToken, domain string) error + func ClearNotifications(baseUrl, accessToken string) error + func Contexts(context ...string) []string + func DeleteFilter(baseUrl, accessToken, filterId string) error + func DeleteFollowSuggestion(baseUrl, accessToken, accountId string) error + func DeleteList(baseUrl, accessToken, listId string) error + func DeleteScheduledStatus(baseUrl, accessToken, scheduledId string) error + func DeleteStatus(baseUrl, accessToken, statusId string) error + func DeleteSubscription(baseUrl, accessToken string) error + func DismissNotification(baseUrl, accessToken, notificationId string) error + func FocalPoint(x, y float64) string + func GetAuthorizeUrl(baseUrl, clientId, scope, redirectUri string) string + func GetDomainBlocks(baseUrl, accessToken string, limit int) (error, []string, string, string) + func GetUrl(url, accessToken string, out interface{}) (error, http.Header, string, string, string) + func RejectFollowRequest(baseUrl, accessToken, accountId string) error + func RemoveAccountsFromList(baseUrl, accessToken, listId string, accounts ...string) error + func Report(baseUrl, accessToken, accountId string, statusIds []string, comment string, ...) error + func RevokeToken(baseUrl, clientId, clientSecret, accessToken string) error + func Scopes(permission ...string) string + func UnblockDomain(baseUrl, accessToken, domain string) error + type Account struct + Account string + Avatar string + AvatarStatic string + Bot bool + CreatedAt string + DisplayName string + Emojis []Emoji + FollowersCount int + FollowingCount int + Header string + HeaderStatic string + Id string + Locked bool + Moved *Account + Source Source + StatusesCount int + Url string + Username string + func GetAccount(baseUrl, accountId string) (error, Account) + func GetAccountBlocks(baseUrl, accessToken string, limit int) (error, []Account, string, string) + func GetAssociatedAccount(baseUrl, accessToken string) (error, Account) + func GetEndorsements(baseUrl, accessToken string, limit int) (error, []Account, string, string) + func GetFollowRequests(baseUrl, accessToken string, limit int) (error, []Account, string, string) + func GetFollowSuggestions(baseUrl, accessToken string) (error, []Account) + func GetFolloweds(baseUrl, accessToken, accountId string, limit int) (error, []Account, string, string) + func GetFollowers(baseUrl, accessToken, accountId string, limit int) (error, []Account, string, string) + func GetMutes(baseUrl, accessToken string, limit int) (error, []Account, string, string) + func GetStatusFavouritedBy(baseUrl, statusId string, limit int) (error, []Account, string, string) + func GetStatusRebloggedBy(baseUrl, statusId string, limit int) (error, []Account, string, string) + func ListAccounts(baseUrl, accessToken, listId string, limit int) (error, []Account, string, string) + func SearchAccounts(baseUrl, accessToken, query string, limit int, resolve, following bool) (error, []Account) + func UpdateProfile(...) (error, Account) + func UpdateProfileAvatar(baseUrl, accessToken, path string) (error, Account) + func UpdateProfileHeader(baseUrl, accessToken, path string) (error, Account) + func VerifyAccountCredentials(baseUrl, accessToken string) (error, Account) + type AccountBook struct + Current []Account + func GetAccountBlocksBook(baseUrl, accessToken string, limit int) AccountBook + func GetEndorsementsBook(baseUrl, accessToken string, limit int) AccountBook + func GetFollowRequestsBook(baseUrl, accessToken string, limit int) AccountBook + func GetFollowedsBook(baseUrl, accessToken, accountId string, limit int) AccountBook + func GetFollowersBook(baseUrl, accessToken, accountId string, limit int) AccountBook + func GetMutesBook(baseUrl, accessToken string, limit int) AccountBook + func GetStatusFavouritedByBook(baseUrl, statusId string, limit int) AccountBook + func GetStatusRebloggedByBook(baseUrl, statusId string, limit int) AccountBook + func ListAccountsBook(baseUrl, accessToken, listId string, limit int) AccountBook + func NewAccountBook(accessToken string) AccountBook + func (book *AccountBook) All() []Account + func (book *AccountBook) Get(url, accessToken string) (error, []Account, string, string) + func (book *AccountBook) Next() []Account + func (book *AccountBook) Previous() []Account + func (book *AccountBook) Update(url string) []Account + type Alerts struct + Favourite string + Follow string + Mention string + Poll string + Reblog string + type App struct + ClientId string + ClientName string + ClientSecret string + Id string + RedirectUri string + VapidKey string + Website string + func RegisterApp(baseUrl, clientName, website, scope string, redirectUri ...string) (error, App) + func VerifyCredentials(baseUrl, accessToken string) (error, App) + type Application struct + Name string + Website string + type Attachment struct + Description string + Id string + Meta Meta + PreviewUrl string + RemoteUrl string + TextUrl string + Type string + Url string + func UpdateMedia(baseUrl, accessToken, attachmentId, description string, focusX, focusY float64) (error, Attachment) + func UploadMedia(baseUrl, accessToken, filePath, description string, focusX, focusY float64) (error, Attachment) + type Book struct + func (book *Book) HasNext() bool + func (book *Book) HasPrevious() bool + type Card struct + AuthorName string + AuthorUrl string + Description string + Height float32 + Html string + Image string + ProviderName string + ProviderUrl string + Title string + Type string + Url string + Width float32 + func GetStatusCard(baseUrl, id string) (error, Card) + type Context struct + Ancestors []Status + Descendants []Status + func GetStatusContext(baseUrl, statusId string) (error, Context) + type Conversation struct + Accounts []Account + Id string + LastStatus Status + Unread bool + func GetConversations(baseUrl, accessToken, maxId, sinceId, minId string, limit int) (error, []Conversation, string, string) + type ConversationBook struct + Current []Conversation + func GetConversationsBook(baseUrl, accessToken string, limit int) ConversationBook + func NewConversationBook(accessToken string) ConversationBook + func (book *ConversationBook) All() []Conversation + func (book *ConversationBook) Get(url, accessToken string) (error, []Conversation, string, string) + func (book *ConversationBook) Next() []Conversation + func (book *ConversationBook) Previous() []Conversation + func (book *ConversationBook) Update(url string) []Conversation + type Emoji struct + ShortCode string + StaticUrl string + Url string + VisibleInPicker bool + func GetCustomEmojis(baseUrl string) (error, []Emoji) + type Error struct + Error string + type Field struct + Name string + Value string + VerifiedAt string + type Filter struct + Context []string + ExpiresAt string + Id string + Irreversible bool + Phrase string + WholeWord bool + func CreateFilter(baseUrl, accessToken, phrase string, context []string, ...) (error, Filter) + func GetFilter(baseUrl, accessToken, filterId string) (error, Filter) + func GetFilters(baseUrl, accessToken string) (error, []Filter) + func UpdateFilter(baseUrl, accessToken, filterId, phrase string, context []string, ...) (error, Filter) + type Focus struct + X float32 + Y float32 + type History struct + Accounts string + Day string + Uses string + type Instance struct + ContactAccount Account + Description string + Email string + Languages []string + Stats Stats + Thumbnail string + Title string + Uri string + Urls URLs + Version string + func GetInstance(baseUrl string) (error, Instance) + type List struct + Id string + Title string + func CreateList(baseUrl, accessToken, title string) (error, List) + func GetList(baseUrl, accessToken, listId string) (error, List) + func GetLists(baseUrl, accessToken string) (error, []List) + func GetListsWithAccount(baseUrl, accessToken, accountId string) (error, []List) + func UpdateList(baseUrl, accessToken, listId, title string) (error, List) + type Media struct + Description string + FocusX float64 + FocusY float64 + Path string + type Mention struct + Account string + Id string + Url string + Username string + type Meta struct + Focus Focus + Original MetaAttributes + Small MetaAttributes + type MetaAttributes struct + Aspect float32 + Bitrate float32 + Duration float32 + FrameRate string + Height float32 + Size string + Width float32 + type Notification struct + Account Account + CreatedAt string + Id string + Status Status + Type string + func GetNotification(baseUrl, accessToken, notificationId string) (error, Notification) + func GetNotifications(baseUrl, accessToken string, excludeTypes []string, ...) (error, []Notification, string, string) + type NotificationBook struct + Current []Notification + func GetNotificationsBook(baseUrl, accessToken string, excludeTypes []string, accountId string, ...) NotificationBook + func NewNotificationBook(accessToken string) NotificationBook + func (book *NotificationBook) All() []Notification + func (book *NotificationBook) Get(url, accessToken string) (error, []Notification, string, string) + func (book *NotificationBook) Next() []Notification + func (book *NotificationBook) Previous() []Notification + func (book *NotificationBook) Update(url string) []Notification + type Poll struct + Expired bool + ExpiresAt string + Id string + Multiple bool + Options []PollOption + Voted bool + VotesCount int + func GetPoll(baseUrl, pollId string) (error, Poll) + func VoteOnPoll(baseUrl, accessToken, pollId string, choices ...int) (error, Poll) + type PollOption struct + Title string + VotesCount int + type PushSubscription struct + Alerts Alerts + Endpoint string + Id int64 + ServerKey string + func CreateSubscription(baseUrl, accessToken, endpoint, p256dh, auth string, ...) (error, PushSubscription) + func GetSubscription(baseUrl, accessToken string) (error, PushSubscription) + func UpdateSubscription(baseUrl, accessToken string, follow, favourite, reblog, mention, poll bool) (error, PushSubscription) + type Relationship struct + Blocking bool + DomainBlocking bool + Endorsed bool + FollowedBy bool + Following bool + Id string + Muting bool + MutingNotifications bool + Requested bool + ShowingReblogs bool + func BlockAccount(baseUrl, accessToken, accountId string) (error, Relationship) + func EndorseAccount(baseUrl, accessToken, accountId string) (error, Relationship) + func FollowAccount(baseUrl, accessToken, accountId string, hideReblogs string) (error, Relationship) + func GetRelationships(baseUrl, accessToken string, accountIds ...string) (error, []Relationship) + func MuteAccount(baseUrl, accessToken, accountId string, notifications bool) (error, Relationship) + func UnblockAccount(baseUrl, accessToken, accountId string) (error, Relationship) + func UnendorseAccount(baseUrl, accessToken, accountId string) (error, Relationship) + func UnfollowAccount(baseUrl, accessToken, accountId string) (error, Relationship) + func UnmuteAccount(baseUrl, accessToken, accountId string) (error, Relationship) + type Result struct + Accounts []Account + Hashtags []Tag + Statuses []Status + func Search(baseUrl, accessToken, query string, resolve, following bool, limit, offset int) (error, Result) + type ScheduledStatus struct + Id string + MediaAttachments []Attachment + Params StatusParams + ScheduledAt string + func GetScheduledStatus(baseUrl, accessToken, scheduledId string) (error, ScheduledStatus) + func GetScheduledStatuses(baseUrl, accessToken string) (error, []ScheduledStatus) + func ScheduleMediaStatus(baseUrl, accessToken, status, scheduledAt, inReplyToId string, ...) (error, ScheduledStatus) + func SchedulePollStatus(baseUrl, accessToken, status, scheduledAt, inReplyToId string, ...) (error, ScheduledStatus) + func ScheduleStatus(baseUrl, accessToken, status, scheduledAt, inReplyToId string, ...) (error, ScheduledStatus) + func ScheduleTextStatus(baseUrl, accessToken, status, scheduledAt, inReplyToId string, sensitive bool, ...) (error, ScheduledStatus) + func UpdateScheduledStatus(baseUrl, accessToken, scheduledId, scheduledAt string) (error, ScheduledStatus) + func UploadAndScheduleMediaStatus(baseUrl, accessToken, status, scheduledAt, inReplyToId string, medias []Media, ...) (error, ScheduledStatus) + type Source struct + Fields []Field + Language string + Note string + Privacy string + Sensitive bool + type Stats struct + DomainCount int64 + StatusCount int64 + UserCount int64 + type Status struct + Account Account + Application Application + Card Card + Content string + CreatedAt string + Emojis []Emoji + Favourited bool + FavouritesCount int + Id string + InReplyToAccountId string + InReplyToId string + Language string + MediaAttachments []Attachment + Mentions []Mention + Muted bool + Pinned bool + Poll Poll + Reblog *Status + Reblogged bool + ReblogsCount int + RepliesCount int + Sensitive bool + SpoilerText string + Tags []Tag + Uri string + Url string + Visibility string + func FavouriteStatus(baseUrl, accessToken, statusId string) (error, Status) + func GetFavourites(baseUrl, accessToken string, limit int) (error, []Status, string, string) + func GetHashtagTimeline(baseUrl, accessToken, hashTag string, local, onlyMedia bool, ...) (error, []Status, string, string) + func GetHomeTimeline(baseUrl, accessToken, maxId, sinceId, minId string, limit int) (error, []Status, string, string) + func GetListTimeline(baseUrl, accessToken, listId, maxId, sinceId, minId string, limit int) (error, []Status, string, string) + func GetPublicTimeline(baseUrl, accessToken string, local, onlyMedia bool, ...) (error, []Status, string, string) + func GetStatus(baseUrl, statusId string) (error, Status) + func GetStatusesOfAccount(baseUrl, accessToken, accountId string, ...) (error, []Status, string, string) + func MuteStatus(baseUrl, accessToken, statusId string) (error, Status) + func PinStatus(baseUrl, accessToken, statusId string) (error, Status) + func PostMediaStatus(baseUrl, accessToken, status, inReplyToId string, mediaIds []string, ...) (error, Status) + func PostPollStatus(baseUrl, accessToken, status, inReplyToId string, pollOptions []string, ...) (error, Status) + func PostStatus(baseUrl, accessToken, status, inReplyToId string, mediaIds []string, ...) (error, Status) + func PostTextStatus(baseUrl, accessToken, status, inReplyToId string, sensitive bool, ...) (error, Status) + func ReblogStatus(baseUrl, accessToken, statusId string) (error, Status) + func UnfavouriteStatus(baseUrl, accessToken, statusId string) (error, Status) + func UnmuteStatus(baseUrl, accessToken, statusId string) (error, Status) + func UnpinStatus(baseUrl, accessToken, statusId string) (error, Status) + func UnreblogStatus(baseUrl, accessToken, statusId string) (error, Status) + func UploadAndPostMediaStatus(baseUrl, accessToken, status, inReplyToId string, medias []Media, ...) (error, Status) + type StatusBook struct + Current []Status + func GetFavouritesBook(baseUrl, accessToken string, limit int) StatusBook + func GetHashtagTimelineBook(baseUrl, accessToken, hashTag string, local, onlyMedia bool, limit int) StatusBook + func GetHomeTimelineBook(baseUrl, accessToken string, limit int) StatusBook + func GetListTimelineBook(baseUrl, accessToken, listId string, limit int) StatusBook + func GetPublicTimelineBook(baseUrl, accessToken string, local, onlyMedia bool, limit int) StatusBook + func GetStatusesOfAccountBook(baseUrl, accessToken, accountId string, ...) StatusBook + func NewStatusBook(accessToken string) StatusBook + func (book *StatusBook) All() []Status + func (book *StatusBook) Get(url, accessToken string) (error, []Status, string, string) + func (book *StatusBook) Next() []Status + func (book *StatusBook) Previous() []Status + func (book *StatusBook) Update(url string) []Status + type StatusParams struct + ApplicationId int64 + InReplyToId string + MediaIds []string + ScheduledAt string + Sensitive string + SpoilerText string + Text string + Visibility string + type StringBook struct + Current []string + func GetDomainBlocksBook(baseUrl, accessToken string, limit int) StringBook + func NewStringBook(accessToken string) StringBook + func (book *StringBook) All() []string + func (book *StringBook) Get(url, accessToken string) (error, []string, string, string) + func (book *StringBook) Next() []string + func (book *StringBook) Previous() []string + func (book *StringBook) Update(url string) []string + type Tag struct + History []History + Name string + Url string + type Token struct + AccessToken string + CreatedAt int64 + Scope string + TokenType string + func CreateAccount(baseUrl, accessToken, username, email, password string, agreement bool, ...) (error, Token) + func GetAccessTokenFromAuthorizationCode(baseUrl, clientId, clientSecret, authorizationCode, scope, redirectUri string) (error, Token) + func GetAccessTokenFromCredentials(baseUrl, clientId, clientSecret, scope string) (error, Token) + func GetAccessTokenFromLogin(baseUrl, clientId, clientSecret, username, password, scope, redirectUri string) (error, Token) + type URLs struct + StreamingAPI string