Polyjuice Client v0.4.2 Polyjuice.Client.Account View Source
Account related functions.
Link to this section Summary
Link to this section Functions
Link to this function
get_data(client_api, user_id \\ nil, event_type)
View Sourceget_data( client_api :: Polyjuice.Client.API.t(), user_id :: String.t() | nil, event_type :: String.t() ) :: {:ok, map()} | any()
Get the data on an account.
user_id
is the user whose data is to be queried; if not specified, defaults
to the user represented by client_api
. event_type
is the type of event
queried.
Link to this function
put_data(client_api, user_id \\ nil, event_type, data)
View Sourceput_data( client_api :: Polyjuice.Client.API.t(), user_id :: String.t() | nil, event_type :: String.t(), data :: map() ) :: {:ok} | any()
Put the data on an account.
user_id
is the user whose data is to be set; if not specified, defaults to
the user represented by client_api
. event_type
is type of event to set and
data
is the new data.
Link to this function
whoami(client)
View Sourcewhoami(client :: Polyjuice.Client.LowLevel.t()) :: {:ok, String.t()} | any()
Who am I