Skip to content
This repository has been archived by the owner on Mar 31, 2022. It is now read-only.

namdevel/ovoid-ruby

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Un-Official OVO API Wrapper for Ruby

GitHub issues GitHub forks GitHub stars GitHub license Twitter

Compliant with the March 19, 2020 OVO API update.

Reference

Features

  • login2FA
  • login2FAVerify
  • loginSecurityCode
  • verifyOVOMember
  • walletInquiry
  • getAccountNo
  • getAccountBalance
  • getAccountPoint
  • getBankList
  • getNotification
  • getLastTransfer
  • getHistory
  • generateSignature private unpublished (for transfer more than 2 times)
  • transferOvo
  • transferBank

Usage

require './lib/Ovo'
Step 1
ovo = Namdevel::Ovo.new()

# @Step 1 
# @getRefId
refId = ovo.login2FA('<phoneNumber>')
@refId = Namdevel::Response.new.getRefId(refId)
puts @refId
Step 2
ovo = Namdevel::Ovo.new()

# @Step 2 
# @getupdateAccessToken
updateAccessToken = ovo.login2FAverify('<refId>','<otpCode>', '<phoneNumber>')
@updateAccessToken = Namdevel::Response.new.getupdateAccessToken(updateAccessToken)
puts @updateAccessToken
Step 3
ovo = Namdevel::Ovo.new()

# @Step 3
# @getAuthToken
# @return eyJhbGciOiJSUzI1NiJ9.eyJleHBpcn......
AuthToken = ovo.loginSecurityCode('<securityCode>', '<updateAccessToken>')
@AuthToken = Namdevel::Response.new.geAuthToken(AuthToken)
puts @AuthToken

Example

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.

License

This open-source software is distributed under the MIT License. See LICENSE

Contributing

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.

About

Un-Official OVO API Wrapper for Ruby

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages