Documentation ¶
Index ¶
- type API
- func (a *API) Auth(client *oauth1.Token) (*User, error)
- func (a *API) Block(userId string) error
- func (a *API) DeleteTweet(tweetId string) error
- func (a *API) FetchHomeTileline(userId, sinceId string, results int) ([]*twitter.TweetDictionary, *twitter.RateLimit, error)
- func (a *API) FetchLikedTweets(userId string, maxResults int) ([]*twitter.TweetDictionary, *twitter.RateLimit, error)
- func (a *API) FetchListTweets(listId string, results int) ([]*twitter.TweetDictionary, *twitter.RateLimit, error)
- func (a *API) FetchOwnedLists(userId string) ([]*twitter.ListObj, error)
- func (a *API) FetchUser(userNames []string) ([]*UserDictionary, error)
- func (a *API) FetchUserMentionTimeline(userId, sinceId string, results int) ([]*twitter.TweetDictionary, *twitter.RateLimit, error)
- func (a *API) FetchUserTimeline(userId, sinceId string, results int) ([]*twitter.TweetDictionary, *twitter.RateLimit, error)
- func (a *API) Follow(userId string) error
- func (a *API) Like(tweetId string) error
- func (a *API) Mute(userId string) error
- func (a *API) PostTweet(text, quoteId, replyId string, mediaIds []string) error
- func (a *API) Retweet(tweetId string) error
- func (a *API) SearchRecentTweets(query, sinceId string, results int) ([]*twitter.TweetDictionary, *twitter.RateLimit, error)
- func (a *API) UnBlock(userId string) error
- func (a *API) UnFollow(userId string) error
- func (a *API) UnLike(tweetId string) error
- func (a *API) UnMute(userId string) error
- func (a *API) UnRetweet(tweetId string) error
- func (a *API) UploadImage(base64Image string) (*UploadImageResponse, error)
- type Image
- type UploadImageResponse
- type User
- type UserDictionary
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct { CurrentUser *User // contains filtered or unexported fields }
API : TwitterAPI
func (*API) FetchHomeTileline ¶
func (a *API) FetchHomeTileline(userId, sinceId string, results int) ([]*twitter.TweetDictionary, *twitter.RateLimit, error)
FetchHomeTileline : ホームタイムラインを取得
func (*API) FetchLikedTweets ¶
func (a *API) FetchLikedTweets(userId string, maxResults int) ([]*twitter.TweetDictionary, *twitter.RateLimit, error)
FetchLikedTweets : ユーザのいいねしたツイートを取得
func (*API) FetchListTweets ¶
func (a *API) FetchListTweets(listId string, results int) ([]*twitter.TweetDictionary, *twitter.RateLimit, error)
FetchListTweets : リスト内のツイートを取得
func (*API) FetchOwnedLists ¶
FetchOwnedLists : ユーザが所有するリストの情報を取得
func (*API) FetchUser ¶
func (a *API) FetchUser(userNames []string) ([]*UserDictionary, error)
FetchUser : UserNameからユーザ情報を取得
func (*API) FetchUserMentionTimeline ¶
func (a *API) FetchUserMentionTimeline(userId, sinceId string, results int) ([]*twitter.TweetDictionary, *twitter.RateLimit, error)
FetchUserMentionTimeline : ユーザのメンションタイムラインを取得
func (*API) FetchUserTimeline ¶
func (a *API) FetchUserTimeline(userId, sinceId string, results int) ([]*twitter.TweetDictionary, *twitter.RateLimit, error)
FetchUserTimeline : ユーザタイムラインを取得
func (*API) SearchRecentTweets ¶
func (a *API) SearchRecentTweets(query, sinceId string, results int) ([]*twitter.TweetDictionary, *twitter.RateLimit, error)
SearchRecentTweets : ツイートを検索
func (*API) UploadImage ¶
func (a *API) UploadImage(base64Image string) (*UploadImageResponse, error)
UploadImage : 画像をアップロード
type UploadImageResponse ¶
type UploadImageResponse struct { MediaID int `json:"media_id"` MediaIDString string `json:"media_id_string"` Size int `json:"size"` ExpiresAfterSecs int `json:"expires_after_secs"` Image Image `json:"image"` }
UploadImageResponse : media/uploadのレスポンス
type UserDictionary ¶
type UserDictionary struct { User *twitter.UserObj PinnedTweet *twitter.TweetDictionary }
UserDictionary : twitter.UserDictionary の独自実装
Click to show internal directories.
Click to hide internal directories.