send API password as 'bearer' (#351)

This commit is contained in:
Jude Nelson
2017-03-27 18:08:54 -04:00
parent 803734137a
commit 0efdf19e36

View File

@@ -3666,9 +3666,9 @@ if __name__ == "__main__":
'app_public_key': key_formatting.decompress( ECPrivateKey(private_key).public_key().to_hex() ),
}
# authentication: basic {password}
# authentication: bearer {password}
headers = {
'Authorization': 'basic {}'.format(api_password)
'Authorization': 'bearer {}'.format(api_password)
}
# make the authentication token