Versions in this module Expand all Collapse all v0 v0.1.0 Dec 14, 2019 Changes in this version + var AuthBaseURL = "https://fanfou.com/" + var BaseURL = "https://api.fanfou.com/" + type AccountService struct + func NewAccountService(c *http.Client, debug bool) *AccountService + func (a *AccountService) Notification(ctx context.Context) (*NotificationOutput, error) + func (a *AccountService) NotifyNum(ctx context.Context) (*NotifyNumOutput, error) + func (a *AccountService) RateLimitStatus(ctx context.Context, opts ...Option) (*RateLimitStatusOutput, error) + func (a *AccountService) UpdateNotifyNum(ctx context.Context, notifyNum int) (*UpdateNotifyNumOutput, error) + func (a *AccountService) UpdateProfile(ctx context.Context, opts ...Option) (*User, error) + func (a *AccountService) UpdateProfileImage(ctx context.Context, reader io.Reader, opts ...Option) (*User, error) + func (a *AccountService) VerifyCredentials(ctx context.Context, opts ...Option) (*User, error) + type BlocksService struct + func NewBlocksService(c *http.Client, debug bool) *BlocksService + func (b *BlocksService) Blocking(ctx context.Context, opts ...Option) ([]User, error) + func (b *BlocksService) Create(ctx context.Context, id string, opts ...Option) (*User, error) + func (b *BlocksService) Destroy(ctx context.Context, id string, opts ...Option) (*User, error) + func (b *BlocksService) Exists(ctx context.Context, id string, opts ...Option) (*User, error) + func (b *BlocksService) Ids(ctx context.Context) ([]string, error) + type DirectMessages struct + CreatedAt string + ID string + InReplyTo *DirectMessages + Recipient *User + RecipientID string + RecipientScreenName string + Sender *User + SenderID string + SenderScreenName string + Text string + type DirectMessagesConversationListOutput struct + DM *DirectMessages + MsgNum int + NewConv bool + OtherID string + type DirectMessagesService struct + func NewDirectMessagesService(c *http.Client, debug bool) *DirectMessagesService + func (d *DirectMessagesService) Conversation(ctx context.Context, id string, opts ...Option) ([]DirectMessages, error) + func (d *DirectMessagesService) ConversationList(ctx context.Context, opts ...Option) (*DirectMessagesConversationListOutput, error) + func (d *DirectMessagesService) Destroy(ctx context.Context, id string, opts ...Option) (*DirectMessages, error) + func (d *DirectMessagesService) Inbox(ctx context.Context, opts ...Option) ([]DirectMessages, error) + func (d *DirectMessagesService) New(ctx context.Context, id, text string, opts ...Option) (*DirectMessages, error) + func (d *DirectMessagesService) Sent(ctx context.Context, opts ...Option) ([]DirectMessages, error) + type Fanfou struct + AccountService *AccountService + BlocksService *BlocksService + DirectMessagesService *DirectMessagesService + FavoritesService *FavoritesService + FollowersService *FollowersService + FriendsService *FriendsService + FriendshipsService *FriendshipsService + PhotosService *PhotosService + SavedSearchesService *SavedSearchesService + SearchService *SearchService + StatusesService *StatusesService + TrendsService *TrendsService + UsersService *UsersService + func NewFanFou(consumerkey, consumerSecret string) *Fanfou + func NewFanFouWithClient(consumerkey, consumerSecret string, client *http.Client) *Fanfou + func (f *Fanfou) AccessToken(ctx context.Context, token oauth.RequestToken, verificationCode string, ...) (*oauth.AccessToken, error) + func (f *Fanfou) AuthorizationURL(token *oauth.RequestToken) (string, error) + func (f *Fanfou) OAuth(accessToken *oauth.AccessToken) error + func (f *Fanfou) RequestToken(ctx context.Context, callback string) (*oauth.RequestToken, error) + func (f *Fanfou) XAuth(username, password string) error + type FavoritesService struct + func NewFavoritesService(c *http.Client, debug bool) *FavoritesService + func (f *FavoritesService) Create(ctx context.Context, msgID string, opts ...Option) (*Status, error) + func (f *FavoritesService) Destroy(ctx context.Context, msgID string, opts ...Option) (*Status, error) + func (f *FavoritesService) Favorites(ctx context.Context, opts ...Option) ([]Status, error) + type FollowersService struct + func NewFollowersService(c *http.Client, debug bool) *FollowersService + func (f *FollowersService) Ids(ctx context.Context, opts ...Option) ([]string, error) + type FriendsService struct + func NewFriendsService(c *http.Client, debug bool) *FriendsService + func (f *FriendsService) Ids(ctx context.Context, opts ...Option) ([]string, error) + type FriendshipsService struct + func NewFriendshipsService(c *http.Client, debug bool) *FriendshipsService + func (a *FriendshipsService) Accept(ctx context.Context, id string, opts ...Option) (*User, error) + func (a *FriendshipsService) Create(ctx context.Context, id string, opts ...Option) (*User, error) + func (a *FriendshipsService) Deny(ctx context.Context, id string, opts ...Option) (*User, error) + func (a *FriendshipsService) Destroy(ctx context.Context, id string, opts ...Option) (*User, error) + func (a *FriendshipsService) Exists(ctx context.Context, idA, idB string) (bool, error) + func (a *FriendshipsService) Requests(ctx context.Context, opts ...Option) ([]User, error) + func (a *FriendshipsService) Show(ctx context.Context, ...) (*User, error) + type FriendshipsShowOutput struct + Relationship ... + type NotificationOutput struct + DirectMessages int + FriendRequests int + Mentions int + type NotifyNumOutput struct + NotifyNum int + Result string + type Option interface + func WithCallback(name string) Option + func WithCount(count int) Option + func WithDescription(description string) Option + func WithEmail(email string) Option + func WithHTMLFormat() Option + func WithID(id string) Option + func WithInReplyToID(msgID string) Option + func WithInReplyToStatusID(msgID string) Option + func WithInReplyToUserID(msgID string) Option + func WithLiteMode() Option + func WithLocation(localtion string) Option + func WithMaxID(maxID int64) Option + func WithName(name string) Option + func WithPage(pageID int) Option + func WithRepostStatusID(msgID string) Option + func WithSinceID(sinceID int64) Option + func WithSource(source string) Option + func WithStatus(status string) Option + func WithURL(url string) Option + type Photo struct + Imageurl string + Largeurl string + Thumburl string + type PhotosService struct + func NewPhotosService(c *http.Client, debug bool) *PhotosService + func (p *PhotosService) Upload(ctx context.Context, reader io.Reader, opts ...Option) (*Status, error) + func (p *PhotosService) UserTimeline(ctx context.Context, opts ...Option) ([]Status, error) + type RateLimitStatusOutput struct + HourlyLimit int + RemainingHits int + ResetTime string + ResetTimeInSeconds int64 + type SavedSearches struct + CreatedAt string + ID int + Name string + Query string + type SavedSearchesService struct + func NewSavedSearchesService(c *http.Client, debug bool) *SavedSearchesService + func (s *SavedSearchesService) Create(ctx context.Context, query []string, opts ...Option) (*SavedSearches, error) + func (s *SavedSearchesService) Destroy(ctx context.Context, id int, opts ...Option) (*SavedSearches, error) + func (s *SavedSearchesService) List(ctx context.Context, opts ...Option) ([]SavedSearches, error) + func (s *SavedSearchesService) Show(ctx context.Context, id int, opts ...Option) (*SavedSearches, error) + type SearchService struct + func NewSearchService(c *http.Client, debug bool) *SearchService + func (s *SearchService) PublicTimeline(ctx context.Context, keywords []string, opts ...Option) ([]Status, error) + func (s *SearchService) UserTimeline(ctx context.Context, keywords []string, opts ...Option) ([]Status, error) + func (s *SearchService) Users(ctx context.Context, keywords []string, opts ...Option) (*SearchUsersOutput, error) + type SearchUsersOutput struct + TotalNumber int + Users []User + type Status struct + CreatedAt string + Favorited bool + ID string + InReplyToScreenName string + InReplyToStatusID string + InReplyToUserID string + Location string + Photo *Photo + RawID int64 + RepostScreenName string + RepostStatus *Status + RepostStatusID string + RepostUserID string + Source string + Text string + Truncated bool + User *User + type StatusesService struct + func NewStatusesService(c *http.Client, debug bool) *StatusesService + func (s *StatusesService) ContextTimeline(ctx context.Context, opts ...Option) ([]Status, error) + func (s *StatusesService) Destroy(ctx context.Context, msgID string, opts ...Option) (*Status, error) + func (s *StatusesService) Followers(ctx context.Context, opts ...Option) ([]User, error) + func (s *StatusesService) Friends(ctx context.Context, opts ...Option) ([]User, error) + func (s *StatusesService) HomeTimeline(ctx context.Context, opts ...Option) ([]Status, error) + func (s *StatusesService) Mentions(ctx context.Context, opts ...Option) ([]Status, error) + func (s *StatusesService) PublicTimeline(ctx context.Context, opts ...Option) ([]Status, error) + func (s *StatusesService) Replies(ctx context.Context, opts ...Option) ([]Status, error) + func (s *StatusesService) Show(ctx context.Context, msgID string, opts ...Option) ([]Status, error) + func (s *StatusesService) Update(ctx context.Context, status string, opts ...Option) (*Status, error) + func (s *StatusesService) UserTimeline(ctx context.Context, opts ...Option) ([]Status, error) + type Trends struct + Name string + Query string + URL string + type TrendsListOutput struct + AsOf string + Trends []Trends + type TrendsService struct + func NewTrendsService(c *http.Client, debug bool) *TrendsService + func (t *TrendsService) List(ctx context.Context, opts ...Option) (*TrendsListOutput, error) + type UpdateNotifyNumOutput struct + NotifyNum string + Result string + type User struct + Birthday string + CreatedAt string + Description string + FavouritesCount int + FollowersCount int + Following bool + FriendsCount int + Gender string + ID string + Location string + Name string + Notifications bool + ProfileBackgroundColor string + ProfileBackgroundImageURL string + ProfileBackgroundTile bool + ProfileImageURL string + ProfileImageURLLarge string + ProfileLinkColor string + ProfileSidebarBorderColor string + ProfileSidebarFillColor string + ProfileTextColor string + Protected bool + ScreenName string + Status *Status + StatusesCount int64 + URL string + UtcOffset int64 + type UsersService struct + func NewUsersService(c *http.Client, debug bool) *UsersService + func (u *UsersService) CancelRecommendation(ctx context.Context, id string, opts ...Option) ([]User, error) + func (u *UsersService) Followers(ctx context.Context, opts ...Option) ([]User, error) + func (u *UsersService) Friends(ctx context.Context, opts ...Option) ([]User, error) + func (u *UsersService) Recommendation(ctx context.Context, opts ...Option) ([]User, error) + func (u *UsersService) Show(ctx context.Context, opts ...Option) (*User, error) + func (u *UsersService) TagList(ctx context.Context, opts ...Option) ([]string, error) + func (u *UsersService) Tagged(ctx context.Context, tag string, opts ...Option) ([]User, error)