mirror of
https://github.com/kennethreitz-archive/python-convore.git
synced 2026-06-05 23:40:18 +00:00
no need for that
This commit is contained in:
@@ -30,17 +30,5 @@ class ConvoreRequest(object):
|
||||
self.username = username
|
||||
self.password = password
|
||||
|
||||
def get(self, *path_components):
|
||||
path_components = filter(None, path_components)
|
||||
|
||||
def post(self, *path_components, **extra_post_data):
|
||||
return self.make_request("/".join(path_components), extra_post_data,
|
||||
method="POST")
|
||||
|
||||
def make_request(self, path, extra_post_data=None, method="GET"):
|
||||
extra_post_data = extra_post_data or {}
|
||||
url = "/".join([self.url_prefix, path])
|
||||
return self.raw_request(url, extra_post_data, method=method)
|
||||
|
||||
class ConvoreError(Exception):
|
||||
"""An error occured while making a request to the Convore API."""
|
||||
|
||||
Reference in New Issue
Block a user