Login

Login is performed by creating an OAuth token resource. Refer to “Create an oauth token” for details.

Examples

curl -d '{"email": "foo@example.com", "password": "thepassword", "token_name": "foo-desktop"}' \
     -H 'Content-Type: application/json' \
     -X POST \
     https://login.ubuntu.com/api/v2/tokens/oauth