aboutsummaryrefslogtreecommitdiffstats
path: root/pygithub3/services/git_data/blobs.py
diff options
context:
space:
mode:
Diffstat (limited to 'pygithub3/services/git_data/blobs.py')
-rw-r--r--pygithub3/services/git_data/blobs.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/pygithub3/services/git_data/blobs.py b/pygithub3/services/git_data/blobs.py
index d5baa2d..4f1a6e7 100644
--- a/pygithub3/services/git_data/blobs.py
+++ b/pygithub3/services/git_data/blobs.py
@@ -11,6 +11,8 @@ class Blobs(Service):
"""Get a particular blob
:param str sha: The sha of the blob to get
+ :param str user: Username
+ :param str repo: Repository
"""
request = self.make_request('git_data.blobs.get', sha=sha,
@@ -18,7 +20,13 @@ class Blobs(Service):
return self._get(request)
def create(self, data, user=None, repo=None):
- """Create a blob"""
+ """Create a blob
+
+ :param dict data: Data describing the blob to create
+ :param str user: Username
+ :param str repo: Repository
+
+ """
request = self.make_request('git_data.blobs.create', body=data,
user=user, repo=repo)
return self._post(request)