Skip to content

Commit fa0f6ed

Browse files
committed
Support ShiPanE API with prefix /api/v1.0
1 parent 7eb111b commit fa0f6ed

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

shipane_sdk/client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ class ConnectionMethod(Enum):
2828

2929

3030
class Client(object):
31+
VERSION = 'v1.0'
3132
KEY_REGEX = r'key=([^&]*)'
3233

3334
def __init__(self, logger=None, **kwargs):
@@ -238,7 +239,7 @@ def __create_url(self, client, resource, resource_id=None, **params):
238239
path = '/{}'.format(resource)
239240
else:
240241
path = '/{}/{}'.format(resource, resource_id)
241-
url = '{}{}?{}'.format(self._base_url, path, urlencode(all_params))
242+
url = '{}/api/{}{}?{}'.format(self._base_url, self.VERSION, path, urlencode(all_params))
242243
return url
243244

244245
def __create_base_url(self):

0 commit comments

Comments
 (0)