API Reference
Last updated
Last updated
The following section outlines the API of mobilemoney.js.
export
Client()
The following error are thrown by the library.
Please note that every request are susceptible to throw all these exception. Make sure to handle it well.
export
MomoException
The base Exception for mobilemoney.py
export
HTTPError
Exception that’s raised when an HTTP request operation fails.
export
Unauthorized
Exception that’s raised for when status code 401 occurs.
subclass of HTTPError
export
MomoServerError
Exception that’s raised for when status code 500 occurs.
subclass of HTTPError
export
InvalidData
Exception that’s raised for when status code 400 occurs.
subclass of HTTPError
export
NotFound
Exception that’s raised for when status code 404 occurs.
subclass of HTTPError
export
Conflict
Exception that’s raised for when status code 409 occurs.
subclass of HTTPError
export
InvalidUniqueIDVersion
Exception that's raised for when UUID is not a valid version 4.
subclass of Error
export
InvalidBasicToken
Exception that's raised for a invalid Basic token type.
subclass of Error
export
InvalidBearerToken
Exception that's raised for a invalid Bearer token type.
subclass of Error
def
def
async
async
async
def
def
def
def