Documentation ¶
Index ¶
- type Config
- type Tweeter
- func (t *Tweeter) Authorize(a *db.Account) (string, string, string, error)
- func (t *Tweeter) Close()
- func (t *Tweeter) Complete(accessToken, accessSecret, verifier string) (string, string, error)
- func (t *Tweeter) Like(a *db.Account, id int64) error
- func (t *Tweeter) Mentions(a *db.Account) ([]anaconda.Tweet, error)
- func (t *Tweeter) Reply(a *db.Account, id, text string) error
- func (t *Tweeter) Trigger(a *db.Account)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { ConsumerKey string ConsumerSecret string ServerURL string Database *db.Connection }
type Tweeter ¶
type Tweeter struct {
// contains filtered or unexported fields
}
Tweeter takes care of sending tweets at regularly scheduled intervals. In addition, the type may be used to interact with the Twitter API.
func (*Tweeter) Authorize ¶
Authorize begins the authorization process for an account. The URL to redirect the user to and the temporary credentials are returned.
func (*Tweeter) Complete ¶
Complete finishes the OAuth process. The access token and secret are returned.
Click to show internal directories.
Click to hide internal directories.