Revision 1baac7bb
b/astakosclient/astakosclient/__init__.py | ||
---|---|---|
927 | 927 |
# -------------------------------- |
928 | 928 |
# do a POST to ``API_OA2_TOKEN`` |
929 | 929 |
def get_token(self, grant_type, client_id, client_secret, **body_params): |
930 |
headers = {'Content-Type': 'application/x-www-form-urlencoded',
|
|
930 |
headers = {'content-type': 'application/x-www-form-urlencoded',
|
|
931 | 931 |
'Authorization': 'Basic %s' % b64encode('%s:%s' % |
932 | 932 |
(client_id, |
933 | 933 |
client_secret))} |
Also available in: Unified diff