Skip to content

Commit f16cd8a

Browse files
committed
Add example to update user bio, location or website
1 parent 50cff1f commit f16cd8a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

examples/update_user.rb

+3
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,8 @@
1515
puts client.update_avatar(username: "batman", url: "http://meta-discourse.r.worldssl.net/uploads/default/2497/724a6ef2e79d2bc7.png")
1616
# update trust level of user whose id is "102"
1717
puts client.update_trust_level(user_id: 102, level: 2)
18+
# upadate user bio, location or website
19+
puts client.update_user("techapj", bio_raw: "I am Batman.", location: "Gotham", website: "https://en.wikipedia.org/wiki/Batman")
20+
1821
# log out everywhere and refresh browser of user whose id is "2"
1922
puts client.log_out(2)

0 commit comments

Comments
 (0)