Skip to content

Commit

Permalink
Created a method to access directly to the "response" of the request.
Browse files Browse the repository at this point in the history
  • Loading branch information
koalalorenzo committed Sep 23, 2014
1 parent 7f278d6 commit 0807261
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions digitalocean/baseapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,13 @@ def __perform_request(self, url, type='GET', params=dict(), headers=dict()):
r = self.__perform_get(url, headers=headers, params=params)
return r

def get_respones(self, url, type="GET", params=dict()):
"""
This method will get a response from a request
"""
req = self.__perform_request(url, type, params)
return req

def get_data(self, url, type="GET", params=dict()):
"""
This method is a basic implementation of __call_api that checks
Expand Down

0 comments on commit 0807261

Please sign in to comment.