Repository
Current version released
4 years ago
Dependencies
std
Versions
Description
This is an Un-official Ovo API wrapper for Deno got inspired from ovoid-nodejs and this is the result of porting from ovoid
Documentation
- Import Denovo class from mod.ts
import {Denovo} from "https://raw.githubusercontent.com/satyawikananda/denovo/master/mod.ts"
let denovo = new Denovo()
- First step, login with your phone number
let login = denovo.login2FA('<Your phone number>')
console.log(login.then((data) => console.log(data)))
- Second step, to get access token, you must login with login2faVerify
let login2FAverify = denovo.login2FAverify('<refId>', '<OTP Code>', '<Your phone number>')
login2FAverify.then((data) => console.log(data))
- Third step, to get JWT token, you must to call loginSecurity function
let loginSecurity = denovo.loginSecurity('<Your Pin OVO>', '<update access token>')
loginSecurity.then((data) => console.log(data))
- And then, put the JWT Token into the paramater class Denovo
denovo = new Denovo("<Your JWT Token>")
- To get data budget, you can use getBudget function
let getDataBudget = denovo.getBudget()
getDataBudget.then((data) => console.log(data))
- To get reference code bank, you can use getRefBank function
let getRefBank = denovo.getRefBank()
getRefBank.then((data) => console.log(data))
- To get data all notification in your ovo account, you can use getAllNotif function
let getAllNotif = denovo.getAllNotif()
getAllNotif.then((data) => console.log(data))
- To get data unread history in your ovo account, you can use getUnreadHistory function
let getUnreadHistory = denovo.getUnreadHistory()
getUnreadHistory.then((data) => console.log(data))
- To get data wallet transaction, you can use getWalletTrans function
let getWalletTrans = denovo.getWalletTrans(1, 10)
getWalletTrans.then((data) => console.log(data))
- To logout from your ovo account, you can use logout function
let logout = denovo.ovoLogout()
logout.then((data) => console.log(data))
- And then, how to run this? π€
deno run --allow-net ./example/index.ts
Features
Method | Result |
---|---|
login2FA |
β |
login2FAVerify |
β |
loginSecurityCode |
β |
getBudget |
β |
getRefBank |
β |
getAllNotification |
β |
getUnreadHistory |
β |
getWalletTransaction |
β |
logout |
β |
generateTrxId |
β |
transferOvo |
β |
Author
@Satyawikananda Β© 2020