The login API returns an API key which can be used along with a username for subsequent API calls.
To use the login command HTTP POST to http://api.planets.nu/login with the following form values:
If the credentials are correct you will receive a an API Key like:
f74b9f96-f89a-4cfe-813f-5f86df1cb37f
You can now use this key for subsequent API calls for this account. This is the API Key of the account and will only change if the user changes their account password.
For all API calls, if you are not authorized or experience an error you will receive a response which begins with the word error followed by a colon and an error message like so:
Error: Invalid username or password.