Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSearchRequest ¶
NewSearchRequest returns a new HTTP request.
func NotifyText ¶
func NotifyText(r *scuttlebutt.Repository) string
NotifyText returns a tweet sized message for a repository.
Types ¶
type Notifier ¶
type Notifier struct { Username string Language string Client interface { SendRequest(*http.Request) (*twittergo.APIResponse, error) } // contains filtered or unexported fields }
Notifier represents a client to post messages to the Twitter API.
func NewNotifier ¶
func NewNotifier() *Notifier
NewNotifier creates a new instance of Client authorized to a user.
func (*Notifier) LastTweetTime ¶
LastTweetTime returns the timestamp of the last tweet. Returns a cached version, if possible. Otherwise retrieves from Twitter.
func (*Notifier) Notify ¶
func (n *Notifier) Notify(r *scuttlebutt.Repository) (*scuttlebutt.Message, error)
Notify updates the authorized user's status. Returns the tweet ID on success.
Click to show internal directories.
Click to hide internal directories.