June 9, 2015


Password Auth
Authenticate to the API with a username + password instead of an API key. Might be useful if you want to GET the api key without logging in to the portal

import SoftLayer
client = SoftLayer.Client()
client.authenticate_with_password("username", "password")
print client.call('Account', 'getCurrentUser', mask='id,apiAuthenticationKeys')

Feedback?

We would love to hear it
Open an issue

/python/token_auth/