Skip to content

Commit 89e018b

Browse files
committed
change how we send grant_type
1 parent 9bece68 commit 89e018b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pydomo/Transport.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@ def _renew_access_token(self):
8686
self.logger.debug("Renewing Access Token")
8787
request_args = {
8888
'method': HTTPMethod.POST,
89-
'url': self.apiHost + '/oauth/token?grant_type=client_credentials',
89+
'url': self.apiHost + '/oauth/token',
90+
'data': {'grant_type': 'client_credentials'},
9091
'auth': HTTPBasicAuth(self.clientId, self.clientSecret)
9192
}
9293
if self.request_timeout:

0 commit comments

Comments
 (0)