8000 Update github user documentation · pythonthings/github3.py@3c36de3 · GitHub
[go: up one dir, main page]

Skip to content {"props":{"docsUrl":"https://docs.github.com/get-started/accessibility/keyboard-shortcuts"}}

Commit 3c36de3

Browse files
committed
Update github user documentation
The Github object has been updated to use either `.me()` or `.user(username)` (9e8b01f). I've updated the documentation to reflect this.
1 parent 51cfbf8 commit 3c36de3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/examples/github.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,6 @@ Note that you **can not** change your login name via the API.
166166

167167
This is the same as::
168168

169-
me = g.user()
169+
me = g.me() # or me = g.user(your_user_name)
170170
if me.update(new_name, blog, company, bio=bio):
171171
print('Profile updated.')

0 commit comments

Comments
 (0)
0