Java SDK (Alpha)

🚧

Alpha Preview

The Java SDK is considered an Alpha Preview and may be subject to unexpected bugs and breaking upgrades.

Getting Started

You can get the full source at github.com/bitcapital-hq/java-sdk.

Setup your client

To start using this SDK you need both a Client ID and a Client Secret, emitted by the Bitcapital Core Team and the URL for the instance you're going to operate over. Every instance has its unique URL and previously authorized OAuth Clients.

If you don't have yours yet, checkout the guide on Requesting your credentials.

// Initialize your client SDK instance
Bitcapital bitcapital = Bitcapital.initialize(apiUrl, clientId, clientSecret);

// Authenticate using OAuth 2.0
OAuthTokenResponse credentials = bitcapital.oauth().token()
    .execute()
    .body();

System.out.println(credentials.accessToken);

Checkout the full reference in the SDK repository.


Did this page help you?