Permalink
Browse files

fixed fetch for screenshot methods

  • Loading branch information...
1 parent 0f8f42d commit 9cc4049799658f9b1bd0ca8161682d0af4ab6985 @zalun zalun committed Oct 8, 2012
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,15 +201,16 @@ 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
: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

0 comments on commit 9cc4049

Please sign in to comment.