Hi Arvindh,

Currently we take both the user API key and password for any API
calls, but that might change in the future.

The best approach for now is to use the Auth API with the username and
password, store the API key from the response and use it for
subsequent API calls. The API looks like this:

POST https://api.heroku.com/login
Params: username, password
Response: JSON
{
  "api_key": "abc123"
}

Thanks,
Pedro

On Sun, Apr 15, 2012 at 11:39 PM, Arvindh Sukumar <[email protected]> wrote:
> According to the Heroku API docs, authentication is done using the User's
> API Key as password, and a blank username, through HTTP Basic
> authentication. However, i found that authentication works even if I use the
> account email and password.
>
> I just wanted to check whether this is 'allowed'. The command-line tool uses
> this method, but I want to use it in an iOS app i'm developing.
>
> Using the email and password for login would be preferred, as it is much
> easier to input than the API key.
>
> Thanks,
> Arvindh
>
> --
> You received this message because you are subscribed to the Google Groups
> "Heroku" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/heroku/-/r7q3XH-5gOwJ.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/heroku?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.

Reply via email to