API Reference
The following section outlines the API of mobilemoney.js.
Client
export
Client()
export
Client()
def collection()
def disbursements()
async createApiUser()
async getApiUser()
async createApiKey()
def getReferenceId()
def isSandbox()
def basicToken()
def bearerToken()
Error
The following error are thrown by the library.
export
MomoException
export
MomoException
The base Exception for mobilemoney.py
export
HTTPError
export
HTTPError
Exception that’s raised when an HTTP request operation fails.
export
Unauthorized
export
Unauthorized
Exception that’s raised for when status code 401 occurs.
subclass of HTTPError
export
MomoServerError
export
MomoServerError
Exception that’s raised for when status code 500 occurs.
subclass of HTTPError
export
InvalidData
export
InvalidData
Exception that’s raised for when status code 400 occurs.
subclass of HTTPError
export
NotFound
export
NotFound
Exception that’s raised for when status code 404 occurs.
subclass of HTTPError
export
Conflict
export
Conflict
Exception that’s raised for when status code 409 occurs.
subclass of HTTPError
export
InvalidUniqueIDVersion
export
InvalidUniqueIDVersion
Exception that's raised for when UUID is not a valid version 4.
subclass of Error
export
InvalidBasicToken
export
InvalidBasicToken
Exception that's raised for a invalid Basic token type.
subclass of Error
export
InvalidBearerToken
export
InvalidBearerToken
Exception that's raised for a invalid Bearer token type.
subclass of Error
Last updated