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 MomoExceptionThe base Exception for mobilemoney.py
export HTTPError
export HTTPErrorException that’s raised when an HTTP request operation fails.
export Unauthorized
export UnauthorizedException that’s raised for when status code 401 occurs.
subclass of HTTPError
export MomoServerError
export MomoServerErrorException that’s raised for when status code 500 occurs.
subclass of HTTPError
export InvalidData
export InvalidDataException that’s raised for when status code 400 occurs.
subclass of HTTPError
export NotFound
export NotFoundException that’s raised for when status code 404 occurs.
subclass of HTTPError
export Conflict
export ConflictException that’s raised for when status code 409 occurs.
subclass of HTTPError
export InvalidUniqueIDVersion
export InvalidUniqueIDVersionException that's raised for when UUID is not a valid version 4.
subclass of Error
export InvalidBasicToken
export InvalidBasicTokenException that's raised for a invalid Basic token type.
subclass of Error
export InvalidBearerToken
export InvalidBearerTokenException that's raised for a invalid Bearer token type.
subclass of Error
Last updated