Documentation ¶
Index ¶
- Variables
- func GetConfig(app string) map[string]string
- func GetHostnameAndIps() (string, string)
- func GetOauthCredentials(config map[string]string) (*oauth.Credentials, bool, error)
- func PostTweet(token *oauth.Credentials, msg string) error
- func SetConfig(app string, config map[string]string)
- type Tweet
Constants ¶
This section is empty.
Variables ¶
View Source
var OauthClient = oauth.Client{ TemporaryCredentialRequestURI: "https://api.twitter.com/oauth/request_token", ResourceOwnerAuthorizationURI: "https://api.twitter.com/oauth/authenticate", TokenRequestURI: "https://api.twitter.com/oauth/access_token", Credentials: oauth.Credentials{ Token: "Gqj79MWnbSlx8BZ8wDWYQ", Secret: "HyjatdbuRHjc0Y8YaddKEV16RekRnQJZ3M29tqQbs8", }, }
Functions ¶
func GetHostnameAndIps ¶
func GetOauthCredentials ¶
Types ¶
type Tweet ¶
type Tweet struct { Text string Identifier string `json:"id_str"` Source string CreatedAt string `json:"created_at"` User struct { Name string ScreenName string `json:"screen_name"` FollowersCount int `json:"followers_count"` ProfileImageURL string `json:"profile_image_url"` } Place *struct { Id string FullName string `json:"full_name"` } Entities struct { HashTags []struct { Indices [2]int Text string } UserMentions []struct { Indices [2]int ScreenName string `json:"screen_name"` } `json:"user_mentions"` Urls []struct { Indices [2]int Url string } } }
Click to show internal directories.
Click to hide internal directories.