< >

API Clients

Biwse API are built on top of OpenAPI 3.0 specification, so you can generate API client library for any popular language.

Supported libraries

Biwse Team maintains several most popular libraries that may be installed by package manager:

Usage examples


Install package via npm:

npm install --save biwse

Configure authorization and make request:

const biwse = require('biwse')
// Configure Bearer access token for authorization: bearerAuth
const defaultClient = biwse.ApiClient.instance
const bearerAuth = defaultClient.authentications['bearerAuth']
bearerAuth.accessToken = 'YOUR ACCESS TOKEN'
const api = new biwse.AppApi()
.createAddress('YOU APP ID', 'btc')
data => console.log('API called successfully. Returned data: ', data),
error => console.error(error)


Install package via composer:

composer require biwse/biwse-php

Include autoload.php and make request:

require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer authorization: bearerAuth
$token = 'YOUR API TOKEN';
$config = Biwse\Configuration::getDefaultConfiguration()->setAccessToken($token);
$apiInstance = new Biwse\Api\AppApi(null, $config);
try {
$result = $apiInstance->createAddress('YOUR APP ID', 'btc');
} catch (Exception $e) {
echo 'Exception when calling AppApi->createAddress: ', $e->getMessage(), PHP_EOL;


Install package via go get:

go get github.com/biwse/biwse-go

Usage example:

import "github.com/biwse/biwse-go"
// Prepare client
token := "<api_token>"
config := biwse.NewConfiguration()
ctx := context.WithValue(context.Background(), biwse.ContextAccessToken, token)
client := biwse.NewAPIClient(config)
// Call any API endpoint
balance, response, err := client.AppApi.GetBalance(ctx, "<app_id>", "btc")