Skip to content

Commit fba449f

Browse files
cohalzChimeraCoder
authored andcommitted
add PostAccountUpdateProfile (#259)
1 parent 06c5e89 commit fba449f

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
@@ -93,3 +93,11 @@ func (a TwitterApi) PostUsersReportSpamById(id int64, v url.Values) (u User, err
9393
a.queryQueue <- query{a.baseUrl + "/users/report_spam.json", v, &u, _POST, response_ch}
9494
return u, (<-response_ch).err
9595
}
96+
97+
// PostAccountUpdateProfile updates the active users profile with the provided values
98+
func (a TwitterApi) PostAccountUpdateProfile(v url.Values) (u User, err error) {
99+
v = cleanValues(v)
100+
response_ch := make(chan response)
101+
a.queryQueue <- query{a.baseUrl + "/account/update_profile.json", v, &u, _POST, response_ch}
102+
return u, (<-response_ch).err
103+
}

0 commit comments

Comments
 (0)