项目作者: namdevel

项目描述 :
Un-Official OVO API Wrapper for Ruby
高级语言: Ruby
项目地址: git://github.com/namdevel/ovoid-ruby.git
创建时间: 2020-03-23T09:18:44Z
项目社区:https://github.com/namdevel/ovoid-ruby

开源协议:MIT License

下载


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

  1. require './lib/Ovo'
Step 1
  1. ovo = Namdevel::Ovo.new()
  2. # @Step 1
  3. # @getRefId
  4. refId = ovo.login2FA('<phoneNumber>')
  5. @refId = Namdevel::Response.new.getRefId(refId)
  6. puts @refId
Step 2
  1. ovo = Namdevel::Ovo.new()
  2. # @Step 2
  3. # @getupdateAccessToken
  4. updateAccessToken = ovo.login2FAverify('<refId>','<otpCode>', '<phoneNumber>')
  5. @updateAccessToken = Namdevel::Response.new.getupdateAccessToken(updateAccessToken)
  6. puts @updateAccessToken
Step 3
  1. ovo = Namdevel::Ovo.new()
  2. # @Step 3
  3. # @getAuthToken
  4. # @return eyJhbGciOiJSUzI1NiJ9.eyJleHBpcn......
  5. AuthToken = ovo.loginSecurityCode('<securityCode>', '<updateAccessToken>')
  6. @AuthToken = Namdevel::Response.new.geAuthToken(AuthToken)
  7. puts @AuthToken

Example

  1. require './lib/Ovo'
  2. # @see getAuthToken.rb to get Authorization Token
  3. # @1 = page , @10 = max result
  4. # @return json
  5. authToken = 'eyJhbGciOiJSUzI1NiJ9.eyJleHBpcn......'
  6. ovo = Namdevel::Ovo.new(authToken)
  7. 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.