1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

Fix typos + additional comments

This commit is contained in:
Kenny Wu 2018-07-31 20:10:12 -07:00
parent ab4eef5170
commit 2a0193046f
2 changed files with 2 additions and 1 deletions

View File

@ -45,7 +45,7 @@ func (client *Client) Tweets() []Tweet {
/* -------------------- Private Functions -------------------- */ /* -------------------- Private Functions -------------------- */
// tweets is the private interface for retrieving the list of user sweets // tweets is the private interface for retrieving the list of user tweets
func (client *Client) tweets() (tweets []Tweet, err error) { func (client *Client) tweets() (tweets []Tweet, err error) {
apiURL := fmt.Sprintf( apiURL := fmt.Sprintf(
"%s/statuses/user_timeline.json?screen_name=%s&count=%s", "%s/statuses/user_timeline.json?screen_name=%s&count=%s",

View File

@ -12,6 +12,7 @@ func Request(bearerToken string, apiURL string) ([]byte, error) {
return nil, err return nil, err
} }
// Expected authorization format for single-application twitter dev accounts
req.Header.Add("Authorization", req.Header.Add("Authorization",
fmt.Sprintf("Bearer %s", bearerToken)) fmt.Sprintf("Bearer %s", bearerToken))