Skip to content

PayRobot Kotlin SDK - Accept, track, forward, store and send Bitcoin, Bitcoin Cash and Litecoin for your website or app

Notifications You must be signed in to change notification settings

payrobot/payrobot-kotlin

Repository files navigation

Payrobot Kotlin SDK

Requires

  • Kotlin 1.3.41
  • Gradle 4.9

Build

First, create the gradle wrapper script:

gradle wrapper

Then, run:

./gradlew check assemble

This runs all tests and packages the library.

Features/Implementation Notes

  • Supports JSON inputs/outputs, File inputs, and Form inputs.
  • Supports collection formats for query parameters: csv, tsv, ssv, pipes.
  • Some Kotlin and Java types are fully qualified to avoid conflicts with types defined in OpenAPI definitions.
  • Implementation of ApiClient is intended to reduce method counts, specifically to benefit Android targets.

Documentation for API Endpoints

All URIs are relative to https://api.payrobot.io

Class Method HTTP request Description
PaymentApi createPayment POST /{currency}/payments Generate a new one-use address to receive a payment
PaymentApi getPayment GET /{currency}/payments/{paymentId} Get detailed information about a payment
WalletApi createWallet POST /{currency}/wallets Create new wallet
WalletApi createWalletSendRequest POST /{currency}/wallets/{walletId}/send-requests Send funds from a wallet
WalletApi getWallet GET /{currency}/wallets/{walletId} Get Wallet information
WalletApi getWalletHistory GET /{currency}/wallets/{walletId}/history Get last transactions of wallet
WalletApi getWalletSendRequest GET /{currency}/wallets/{walletId}/send-requests/{requestId} Obtain information of a send request

Documentation for Models

Documentation for Authorization

All endpoints do not require authorization.