Skip to content

Commit 140651d

Browse files
committed
Add function to update profile with /account/update_profile
1 parent afffdba commit 140651d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

users.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,11 @@ func (a TwitterApi) GetUserSearch(searchTerm string, v url.Values) (u []User, er
5454
a.queryQueue <- query{a.baseUrl + "/users/search.json", v, &u, _GET, response_ch}
5555
return u, (<-response_ch).err
5656
}
57+
58+
// PostAccountUpdateProfile updates the active users profile with the provided values
59+
func (a TwitterApi) PostAccountUpdateProfile(v url.Values) (u User, err error) {
60+
v = cleanValues(v)
61+
response_ch := make(chan response)
62+
a.queryQueue <- query{a.baseUrl + "/account/update_profile.json", v, &u, _POST, response_ch}
63+
return u, (<-response_ch).err
64+
}

0 commit comments

Comments
 (0)