.. vim: ft=rst Login ===== Login is performed by creating an :ref:`OAuth token ` resource. Refer to :ref:`"Create an oauth token" ` for details. Examples -------- .. code-block:: bash 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