Skip to content
Ibrahim hamzat edited this page Jan 1, 2021 · 1 revision

Welcome to the Mono-Python wiki!

Py-mono is the python API wrapper for mono.co

Usage

Import
   from pymono import Mono
Exchange Key or Authenticaton
   mono= Mono('mono-code')
   data,status = mono.Auth()

User Id

set the user id to get other function working

   mono.SetUserId(data.get('id))

Statement

The user statement of account is returned

params example
month last6month,last12month
output json, pdf
   mono.getStatement()  

Account

The user account details is returned

   mono.getAccount()

Transactions

return user transaction all transactions without filter return all the

params example
start "1-10-2020"
end "7-11-2020"
narration uber etc
types debit, credit
paginate true ,false
   
   #Get all the transactions without filter
   mono.getTransactions()
     
   #Parameter accepted  to  filter  Transaction  
   mono.getTransactions(start="",end=" ",narration="",types="",paginate="")

Statement

   mono.getStatement()
   #p
     

Credits

   mono.getCredits()
   #p
     

Debits

   mono.getDebits()
   #p
     

Identity

   mono.getIdentity()
   #p
     

BVN Lookup

   mono.bvn_lookup()
   #p