module Monzo::Client::Identity

Overview

Exposes the method for retrieving Identity, described in the documentation as who_am_i.

Direct including types

Defined in:

monzo/client/identity.cr

Instance Method Summary

Instance Method Detail

def identity #

Fetches the Identity for the autenticated user.

client = Monzo.new("API_TOKEN")
client.who_am_i # => #<Monzo::Identity:0x102d40640 @authenticated=true, @client_id="oauthclient_CLIENTID", ...>

[View source]