Compliant with the March 19, 2020 OVO API update.
- login2FA
- login2FAVerify
- loginSecurityCode
- verifyOVOMember
- walletInquiry
- getAccountNo
- getAccountBalance
- getAccountPoint
- getBankList
- getNotification
- getLastTransfer
- getHistory
- generateSignature
private unpublished
(for transfer more than 2 times) - transferOvo
- transferBank
require './lib/Ovo'
ovo = Namdevel::Ovo.new()
# @Step 1
# @getRefId
refId = ovo.login2FA('<phoneNumber>')
@refId = Namdevel::Response.new.getRefId(refId)
puts @refId
ovo = Namdevel::Ovo.new()
# @Step 2
# @getupdateAccessToken
updateAccessToken = ovo.login2FAverify('<refId>','<otpCode>', '<phoneNumber>')
@updateAccessToken = Namdevel::Response.new.getupdateAccessToken(updateAccessToken)
puts @updateAccessToken
ovo = Namdevel::Ovo.new()
# @Step 3
# @getAuthToken
# @return eyJhbGciOiJSUzI1NiJ9.eyJleHBpcn......
AuthToken = ovo.loginSecurityCode('<securityCode>', '<updateAccessToken>')
@AuthToken = Namdevel::Response.new.geAuthToken(AuthToken)
puts @AuthToken
require './lib/Ovo'
# @see getAuthToken.rb to get Authorization Token
# @1 = page , @10 = max result
# @return json
authToken = 'eyJhbGciOiJSUzI1NiJ9.eyJleHBpcn......'
ovo = Namdevel::Ovo.new(authToken)
puts ovo.getHistory('1', '10')
More see on example
.
This open-source software is distributed under the MIT License. See LICENSE
All kinds of contributions are welcome - code, tests, documentation, bug reports, new features, etc...
- Send feedbacks.
- Submit bug reports.
- Write/Edit the documents.
- Fix bugs or add new features.