Skip to content

Commit

Permalink
add PostAccountUpdateProfile (#259)
Browse files Browse the repository at this point in the history
  • Loading branch information
cohalz authored and ChimeraCoder committed Oct 14, 2018
1 parent 06c5e89 commit fba449f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions users.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,3 +93,11 @@ func (a TwitterApi) PostUsersReportSpamById(id int64, v url.Values) (u User, err
a.queryQueue <- query{a.baseUrl + "/users/report_spam.json", v, &u, _POST, response_ch}
return u, (<-response_ch).err
}

// PostAccountUpdateProfile updates the active users profile with the provided values
func (a TwitterApi) PostAccountUpdateProfile(v url.Values) (u User, err error) {
v = cleanValues(v)
response_ch := make(chan response)
a.queryQueue <- query{a.baseUrl + "/account/update_profile.json", v, &u, _POST, response_ch}
return u, (<-response_ch).err
}

0 comments on commit fba449f

Please sign in to comment.