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

Commit

Permalink
Updated README and version for Rubygems
Browse files Browse the repository at this point in the history
  • Loading branch information
jorilallo committed Jul 2, 2015
1 parent 45baa30 commit 1a721af
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
16 changes: 14 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ Add this line to your application's Gemfile:

Then execute:

$ bundle install
bundle install

Or install it yourself as:

$ gem install coinbase
gem install coinbase

## Authentication

Expand Down Expand Up @@ -58,6 +58,8 @@ client.refresh!
client.revoke!
```

_Protip:tm::_ You can test OAuth2 authentication easily with Developer Access Tokens which can be created under your [OAuth2 application settings](https://www.coinbase.com/settings/api). These are short lived tokens which authenticate but don't require full OAuth2 handshake to obtain.

#### Two factor authentication

Send money endpoint requires 2FA token in certain situations (read more [here](https://developers.coinbase.com/docs/wallet/coinbase-connect#two-factor-authentication)). Specific exception is thrown when this is required:
Expand Down Expand Up @@ -576,3 +578,13 @@ checkout.orders
checkout = client.checkout(checkout_id)
checkout.create_order(amount: "1", currency: "BTC", name: "Order #1234")
```

## Contributing and testing

Any and all contributions are welcome! The process is simple: fork this repo, make your changes, add tests, run the test suite, and submit a pull request. Tests are run via rspec. To run the tests, clone the repository and then:

# Install the requirements
gem install coinbase

# Run tests
rspec spec
2 changes: 1 addition & 1 deletion lib/coinbase/wallet/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Coinbase
module Wallet
VERSION = "4.0.1"
VERSION = "4.0.2"
end
end

0 comments on commit 1a721af

Please sign in to comment.