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(rawImage []byte) (*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(rawImage []byte) (*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.