/coinbase-api-v2-java

A non-official Java API for Coinbase v2 developpers

Primary LanguageJava

coinbase-api-v2-java

A non-official Java library for Coinbase v2 API https://developers.coinbase.com/api/v2

How to use ?

1. Authentication context

1a. By Coinbase API Key

API Key is used when you provide services for your own

CoinbaseAuthenticationBearer auth = new CoinbaseAuthenticationApiKey("{MY_COINBASE_API_KEY}");

1b. By Coinbase OAuth service

OAuth is used when you provide services for a third party

CoinbaseAuthenticationBearer auth = new CoinbaseAuthenticationOAuth("{ACCESS_TOKEN_RETRIEVED_BY_AUTH}");

2. Call Coinbase user remote services

CoinbaseUserService userService = new CoinbaseUserService();

2a. Show current user informations

CoinbaseUser user = userService.showCurrent(auth);

2b. Show current user authorizations

CoinbaseAuthInfo informations = userService.showAuthorizationInformation(auth);

Current limitations

  • The remote call by API Key or OAuth is not tested yet
  • All the features from API are not yet implemented (please ask if you want one missing quickly)

License

For non-commercial use only ! Please contact me if you want to use it for commercial use.

Who to thanks ?

This API was written by Yoan Africa.