Code Monkey home page Code Monkey logo

ovopy's Introduction

ovopy

BuildStatus Version 1.0.0 Supported python versions: 3.6 License Codacy Badge Donate

Un-official OVOid Python3 Client

Language: English Indonesia


Install

python3 setup.py install

Function status

Function Status
login2FA OK
verifyLogin2FA OK
loginSecurityCode OK
getBudget OK
getFrontModel OK
generateTrxId OK
transferOvoBalance Error: Invalid Model
logout OK
getUnreadNotification OK
getWalletTransaction OK

Tested on OVO v2.8.0 | 27/03/2019 | Python 3.6

Examples

Login

You can check at test.py.

WARNING: When you logged in at the first time, make sure you got the token, because OVO limits loggedin device

import ovopy
# By default, settings saved to local .json file, so when you attempted to login with phone number (again) it'll use token that saved on local .json file resolved by phone number. You can disable this feature by adding `save_auth=False` at OVO class argument.
# ovo = ovopy.OVO(save_auth=False)

ovo = ovopy.OVO()
# with phone_number
l2fa  = ovo.login('<phone_number>')
vl2fa = ovo.verifyLogin2FA(l2fa.refId, '<SMS Pincode>', '<phone_number>')
lsc   = ovo.loginSecurityCode('<6digit of security code>', vl2fa.updateAccessToken)

# with token
lwt  = ovo.login(token='<token here JWT>')

# Test now! :D
print(ovo.getFrontModel())

Account Information

Get account information

r = ovo.getFrontModel()
print(r) # resp: FrontResponse(...)

Budget Details

Get details of budget

r = ovo.getBudget()
print(r) # resp: BudgetResponse(budget=History(amount=0, categoryId=None, spending=0), totalSpending=0, cycleDate=1, summary=[...])

Transaction History

Get list of transactions history

r = ovo.getWalletTransaction(page=1, limit=1)
print(r) # resp: WalletTransactionResponse(...)

Balance Transfer

Currently, You can only transfer two times, for the 3rd one you'll need signature header. Please make pull request if you know how to reproduce the signature, Thank you.

rtrx = ovo.transferOvoBalance('<to_phone_number>', 10000, None)
print(rtrx) # resp: CustomerTransferResponse(...)

Notifications

# Get all notifications
rx = ovo.getAllNotification()
print(rx) # resp: NotificationAllRespone(notifications=[...])

# Get total unread notification
r = ovo.getUnreadNotification()
print(r)  # resp: NotificationUnreadResponse(Total=0)

Logout

Logout from client

r = ovo.logout()
print(r) # resp: LogoutResponse(httpStatus=200)

Errors

OVOUnexpectedError

An error occured from REST Endpoint caused by http code response is not 200, Most of them caused by invalid client payload

Other Programming Languages

Checkout also other Un-official OVO[id] Clients!

Repository Language
@lintangtimur/ovoid PHP
@anysz/ovopy Python

Author

Anysz / @Anysz

ovopy's People

Contributors

ii64 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

ovopy's Issues

getWalletTransaction raise an error of httpStatus=404

I run on Python3.7.7. It was successfully login, but when calling this function, I got an error:

r = ovo.getWalletTransaction(page=1, limit=1)

error.OVOUnexpectedError: OVOHttpResponse(code=None, status=None, message=None, content=None, data=None, httpStatus=404)

def getWalletTransaction(self, page=1, limit=10,*_, **kws):

Another warning when importing ovopy: "DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3,and in 3.9 it will stop working"

getWalletTransaction gagal

Responnya begini mas
error.OVOUnexpectedError: OVOHttpResponse(code=None, status=404, message='Data Not Found!', content=None, data=None, httpStatus=404)
Barangkali sudah ganti url api nya ya?
Mohon bantuannya kalau ada update lagi.
Terimakasih banyak.

Please Update to Latest Version

Traceback (most recent call last):
File "tes.py", line 13, in
lsc = ovo.loginSecurityCode('252101', vl2fa.updateAccessToken)
File "D:\PythonLib\ovo\ovo\ovopy\main.py", line 88, in loginSecurityCode
return self.client.loginSecurityCode(pin_code,updateAccessToken)
File "D:\PythonLib\ovo\ovo\ovopy\api\client.py", line 171, in loginSecurityCode
raise OVOUnexpectedError(err)
error.OVOUnexpectedError: OVOHttpResponse(code=9999, status=None, message='Please update to the latest version of OVO app to enjoy all the features offered by OVO', content=None, data=None, httpStatus=410)

could you help me to update this script?

tidak bisa login error minta update playstore

halo gan, saya coba jalanin skripnya ya, ini saya dpet error kyak gini
Agar bisa mengakses OVO, Update terlebih dulu aplikasi OVO-mu melalui App Store / Play Store

saya udah ganti app-version ke yang terbaru, tapi masih tetap dpet error kyak gtu, apakah ada solusi ? terimakasih

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.