Skip to content

Commit 05c76ed

Browse files
Kevin Funkk-funk
authored andcommitted
retrieve report without type
1 parent 8d498e7 commit 05c76ed

File tree

3 files changed

+5
-13
lines changed

3 files changed

+5
-13
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
### NEXT (unreleased)
22

3+
### 3.6.2 2017-05-23
4+
5+
* Report.retrieve no longer requires a type to be passed
6+
37
### 3.6.1 2017-05-09
48

59
* Modernize tests; make tests able to run in parallel; etc.

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.6.1
1+
3.6.2

easypost/__init__.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -968,18 +968,6 @@ def create(cls, api_key=None, **params):
968968
response, api_key = requestor.request('post', url, wrapped_params, False)
969969
return convert_to_easypost_object(response, api_key)
970970

971-
@classmethod
972-
def retrieve(cls, easypost_id="", api_key=None, **params):
973-
try:
974-
easypost_id = easypost_id['id']
975-
except (KeyError, TypeError):
976-
pass
977-
978-
url = "%s/%s/%s" % (cls.class_url(), params['type'], easypost_id)
979-
requestor = Requestor(api_key)
980-
response, api_key = requestor.request('get', url)
981-
return convert_to_easypost_object(response, api_key)
982-
983971
@classmethod
984972
def all(cls, api_key=None, **params):
985973
requestor = Requestor(api_key)

0 commit comments

Comments
 (0)