10000 Added documentation for create_key API by Akasurde · Pull Request #562 · sigmavirus24/github3.py · GitHub
[go: up one dir, main page]

Skip to content

Added documentation for create_key API #562

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 2, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions github3/github.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,8 +302,10 @@ def create_key(self, title, key, read_only=False):
"""Create a new key for the authenticated user.

:param str title: (required), key title
:param key: (required), actual key contents, accepts path as a string
or file-like object
:param str key: (required), actual key contents, accepts path
as a string or file-like object
:param bool read_only: (optional), restrict key access to read-only,
default to False
:returns: :class:`Key <github3.users.Key>`
"""
json = None
Expand Down
2 changes: 2 additions & 0 deletions github3/repos/repo.py
Original file line number Diff line number Diff line change
Expand Up @@ -826,6 +826,8 @@ def create_key(self, title, key, read_only=False):

:param str title: (required), title of key
:param str key: (required), key text
:param bool read_only: (optional), restrict key access to read-only,
default is False
:returns: :class:`Key <github3.users.Key>` if successful, else None
"""
json = None
Expand Down
0