Skip to content

Commit

Permalink
fixed fetch for screenshot methods
Browse files Browse the repository at this point in the history
  • Loading branch information
zalun committed Oct 8, 2012
1 parent 0f8f42d commit 9cc4049
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions marketplace/client.py
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 9cc4049

Please sign in to comment.