Use the login OR account field from netrc (whichever is present).
Default an endpoint to performing a GET request, thus the following are both equivalent.

api.whoami()
api.whoami.get()