Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed fetch for screenshot methods

  • Loading branch information...
commit 9cc4049799658f9b1bd0ca8161682d0af4ab6985 1 parent 0f8f42d
@zalun zalun authored
Showing with 4 additions and 5 deletions.
  1. +4 −5 marketplace/client.py
View
9 marketplace/client.py
@@ -10,11 +10,9 @@
from base64 import b64encode
-import httplib2
import oauth2 as oauth
-import requests
-from urlparse import urlparse, urlunparse, parse_qsl
+from urlparse import urlunparse
from .connection import Connection
@@ -203,7 +201,7 @@ def get_screenshot(self, screenshot_id):
* status_code (int) 200 is successful
* content (JSON string)
"""
- return self.conn.get(self.url('screenshot') % screenshot_id)
+ return self.conn.fetch('GET', self.url('screenshot') % screenshot_id)
def del_screenshot(self, screenshot_id):
"""Deletes screenshot
@@ -211,7 +209,8 @@ def del_screenshot(self, screenshot_id):
:returns: HttpResponse:
* status_code (int) 204 if successful
"""
- return self.conn.delete(self.url('screenshot') % screenshot_id)
+ return self.conn.fetch('DELETE',
+ self.url('screenshot') % screenshot_id)
def get_categories(self):
"""Get all categories from Marketplae
Please sign in to comment.
Something went wrong with that request. Please try again.