Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions easypost/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -628,12 +628,10 @@ def create(cls, api_key=None, verify=None, verify_strict=None, **params):
if verify or verify_strict:
verify = verify or []
verify_strict = verify_strict or []
url += "?"

for param in verify:
url += "verify[]={0}".format(param)
for param in verify_strict:
url += "verify_strict[]={0}".format(param)
url += '?' + '&'.join(
['verify[]={0}'.format(opt) for opt in verify] +
['verify_strict[]={0}'.format(opt) for opt in verify_strict]
)

wrapped_params = {cls.class_name(): params}
response, api_key = requestor.request('post', url, wrapped_params)
Expand Down