mangopay v0.1.0 MangoPay.User
Functions for MangoPay client.
Link to this section Summary
Functions
List all users
List all users
Get a user
Get a user
Get emoney
Get emoney
Get path called
Get path called
Link to this section Functions
Link to this function
all(query \\ %{})
List all users.
Examples
query = %{
"Page": 1,
"Per_Page": 25,
"Sort": "CreationDate:DESC",
"BeforeDate": 1463440221,
"AfterDate": 1431817821
}
{:ok, users} = MangoPay.User.all query
Link to this function
all!(query \\ %{})
List all users.
Examples
query = %{
"Page": 1,
"Per_Page": 25,
"Sort": "CreationDate:DESC",
"BeforeDate": 1463440221,
"AfterDate": 1431817821
}
users = MangoPay.User.all! query
Link to this function
get(id)
Get a user.
Examples
{:ok, user} = MangoPay.User.get(id)
Link to this function
get!(id)
Get a user.
Examples
user = MangoPay.User.get!(id)
Link to this function
get_emoney(id)
Get emoney.
Examples
{:ok, client} = MangoPay.User.get_emoney("user_id")
Link to this function
get_emoney!(id)
Get emoney.
Examples
client = MangoPay.User.get_emoney!("user_id")
Link to this function
path()
Get path called.
Examples
"/users" = MangoPay.User.path()
Link to this function
path(id)
Get path called.
Examples
"/users/id" = MangoPay.User.path(id)