Skip to content

Commit 89cf94f

Browse files
committed
Updated methods to use OX3APIClient.api_path
Updated methods to use OX3APIClient.api_path instead of API_PATH global variable.
1 parent 9a4c75a commit 89cf94f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ox3apiclient.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,15 +168,15 @@ def validate_session(self):
168168

169169
self._cookie_jar.set_cookie(cookie)
170170

171-
url = 'http://'+self.domain+API_PATH+'/a/session/validate'
171+
url = 'http://'+self.domain+self.api_path+'/a/session/validate'
172172
res = self.request(url=url, method='PUT')
173173
return res.read()
174174

175175
def _resolve_url(self, url):
176176
""""""
177177
parse_res = urlparse.urlparse(url)
178178
if not parse_res.scheme:
179-
url ='http://%s%s%s' % (self.domain, API_PATH, parse_res.path)
179+
url ='http://%s%s%s' % (self.domain, self.api_path, parse_res.path)
180180

181181
return url
182182

0 commit comments

Comments
 (0)