Skip to content

Commit 9a4c75a

Browse files
committed
Update API_PATH to remove '/a'
Updated API_PATH global to remove '/a' so that relative paths for API requests match that in the documentation.
1 parent 47e0d1f commit 9a4c75a

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
@@ -10,7 +10,7 @@
1010
REQUEST_TOKEN_URL = 'https://sso.openx.com/api/index/initiate'
1111
ACCESS_TOKEN_URL = 'https://sso.openx.com/api/index/token'
1212
AUTHORIZATION_URL = 'https://sso.openx.com/login/process'
13-
API_PATH = '/ox/3.0/a'
13+
API_PATH = '/ox/3.0'
1414
HTTP_METHOD_OVERRIDES = ['DELETE', 'PUT']
1515

1616
class OX3APIClient(object):
@@ -168,7 +168,7 @@ def validate_session(self):
168168

169169
self._cookie_jar.set_cookie(cookie)
170170

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

0 commit comments

Comments
 (0)