Documentation ¶
Index ¶
- Constants
- func CreateQuery(count string) url.Values
- type DataType
- type Twitter
- func (tw *Twitter) Auth() (*oauth.Credentials, string, error)
- func (tw *Twitter) Block(screenName string) (string, error)
- func (tw *Twitter) DeleteTweet(tweetId string) (string, error)
- func (tw *Twitter) Favorite(tweetId string) (string, error)
- func (tw *Twitter) FetchListTweets(listId int64, count string) (*[]anaconda.Tweet, error)
- func (tw *Twitter) FetchRelationships(userId string) ([]string, error)
- func (tw *Twitter) FetchSearchResult(queryStr, count string) (*[]anaconda.Tweet, error)
- func (tw *Twitter) FetchTimelineTweets(category timelineCategory, query url.Values) (*[]anaconda.Tweet, error)
- func (tw *Twitter) FetchUserInfo(screenName string) (*anaconda.User, error)
- func (tw *Twitter) Follow(screenName string) (string, error)
- func (t *Twitter) GetDataFromTweetNum(tweetNumStr string, dataType DataType) (string, error)
- func (t *Twitter) GetTweetURL(tweetNumStr string) (string, error)
- func (tw *Twitter) Init(cred *oauth.Credentials)
- func (tw *Twitter) Mute(screenName string) (string, error)
- func (tw *Twitter) PostTweet(query url.Values, text string) (string, error)
- func (t *Twitter) RegisterTweets(tweets *[]anaconda.Tweet)
- func (tw *Twitter) Retweet(tweetId string) (string, error)
- func (tw *Twitter) UnRetweet(tweetId string) (string, error)
- func (tw *Twitter) Unblock(screenName string) (string, error)
- func (tw *Twitter) Unfavorite(tweetId string) (string, error)
- func (tw *Twitter) Unfollow(screenName string) (string, error)
- func (tw *Twitter) Unmute(screenName string) (string, error)
- func (tw *Twitter) UploadImage(images []string) (string, error)
Constants ¶
View Source
const ( Home timelineCategory = iota Mention User )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Twitter ¶ added in v1.8.0
type Twitter struct { // API TwitterAPI API *anaconda.TwitterApi // OwnUser ユーザの情報 OwnUser *anaconda.User // Tweets 操作対象のツイート Tweets []anaconda.Tweet // List リスト情報 List map[string]int64 // contains filtered or unexported fields }
Twitter APIと付随するデータの管理
func (*Twitter) Auth ¶ added in v1.8.0
func (tw *Twitter) Auth() (*oauth.Credentials, string, error)
Auth アプリケーション認証
func (*Twitter) DeleteTweet ¶ added in v1.8.0
DeleteTweet ツイートを削除
func (*Twitter) FetchListTweets ¶ added in v1.8.0
FetchListTweets リストのツイートを取得
func (*Twitter) FetchRelationships ¶ added in v1.8.0
FetchRelationships ユーザとの関係性を取得
func (*Twitter) FetchSearchResult ¶ added in v1.8.0
FetchSearchResult 検索結果を取得
func (*Twitter) FetchTimelineTweets ¶ added in v1.8.0
func (tw *Twitter) FetchTimelineTweets(category timelineCategory, query url.Values) (*[]anaconda.Tweet, error)
FetchTimelineTweets タイムラインのツイートを取得
func (*Twitter) FetchUserInfo ¶ added in v1.8.0
FetchUserInfo ユーザ情報を取得
func (*Twitter) GetDataFromTweetNum ¶ added in v1.8.0
GetDataFromTweetNum ツイート番号から情報を取得
func (*Twitter) GetTweetURL ¶ added in v1.8.0
GetTweetURL ツイートのURLを取得
func (*Twitter) RegisterTweets ¶ added in v1.8.0
RegisterTweets ツイートを登録
func (*Twitter) Unfavorite ¶ added in v1.8.0
Unfavorite いいねを取り消す
Click to show internal directories.
Click to hide internal directories.