Expand description
Modules§
- admin
- This module contains all the admin functions that can be mapped to an
endpoint provided by the
CCash
API. Non-admin functions can be found withinmethods
.
Functions§
- add_
user - Adds a
user
with a balance of 0. - change_
password - Returns
true
about if a password change was successful for the givenuser
. This function modifiesuser
to use thenew_password
instead of the previous password in the case of a successful password change. - contains_
user - Returns a
bool
about whether or not the the user with a givenuser
exists. This function does not require a password. - delete_
user - Removes the
user
. This function requires theuser
to be a valid username and password otherwise the endpoint will return an error. - get_
balance - Returns the balance of the
user
. - get_
logs - Returns the transaction logs for a given
user
. This function requires a correct password. - send_
funds - Sends funds from the
user
to the user with therecipient_name
. This function returns theuser
’s balance after a successful transaction has been made. - verify_
password - Returns a
bool
about whether or not thepassword
for a givenuser
is correct.