denovo

Un-official Ovo API wrapper for Deno ๐Ÿฆ•

https://github.com/satyawikananda/denovo

config

example

screenshot

src

LICENSE

README.md

mod.ts

Denovo (Un-official Ovo API wrapper for Deno ๐Ÿฆ•)

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://gitlab.com/satyawikananda/denovo/-/raw/master/LICENSE)

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

MethodResult
login2FAโœ”
login2FAVerifyโœ”
loginSecurityCodeโœ”
getBudgetโœ”
getRefBankโœ”
getAllNotificationโœ”
getUnreadHistoryโœ”
getWalletTransactionโœ”
logoutโœ”
generateTrxIdโœ–
transferOvoโœ–

Author

@Satyawikananda ยฉ 2020