API Reference
The following section outlines the API of mobilemoney.py.
Version Info
mobilemoney.__version__
mobilemoney.__version__A string representation of the version
Client
class mobilemoney.Client()
class mobilemoney.Client()def collection()
def disbursements()
async create_api_user()
async get_api_user()
async create_api_key()
def is_sandbox()
def basic_token()
def bearer_token()
Exception
The following exceptions are thrown by the library.
exception mobilemoney.MomoException
exception mobilemoney.MomoExceptionThe base Exception for mobilemoney.py
exception mobilemoney.HTTPException (response, message )
exception mobilemoney.HTTPException (response, message )Exception that’s raised when an HTTP request operation fails.
exception mobilemoney.Unauthorized ( response, message )
exception mobilemoney.Unauthorized ( response, message )Exception that’s raised for when status code 401 occurs.
subclass of HTTPException
exception mobilemoney.MomoServerError ( response, message )
exception mobilemoney.MomoServerError ( response, message )Exception that’s raised for when status code 500 occurs.
subclass of HTTPException
exception mobilemoney.InvalidData ( response, message )
exception mobilemoney.InvalidData ( response, message )Exception that’s raised for when status code 400 occurs.
subclass of HTTPException
exception mobilemoney.NotFound ( response, message )
exception mobilemoney.NotFound ( response, message )Exception that’s raised for when status code 404 occurs.
subclass of HTTPException
exception mobilemoney.Conflict ( response, message )
exception mobilemoney.Conflict ( response, message )Exception that’s raised for when status code 409 occurs.
subclass of HTTPException
exception mobilemoney.InvalidUniqueIDVersion
exception mobilemoney.InvalidUniqueIDVersionException that's raised for when UUID is not a valid version 4.
subclass of Exception
exception mobilemoney.InvalidBasicToken
exception mobilemoney.InvalidBasicTokenException that's raised for a invalid Basic token type.
subclass of Exception
exception mobilemoney.InvalidBearerToken
exception mobilemoney.InvalidBearerTokenException that's raised for a invalid Bearer token type.
subclass of Exception
Last updated