balance
Balance
/balance
Usage and SDK Samples
curl -X POST\
-H "X-Request-Sign: [[apiKey]]"\
-H "Accept: application/json,string"\
-H "Content-Type: application/json"\
"https://BASE_URL/api-reverse/balance"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.RequestFromGPToJBPCPlatformApi;
import java.io.File;
import java.util.*;
public class RequestFromGPToJBPCPlatformApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: HMAC-SHA256
ApiKeyAuth HMAC-SHA256 = (ApiKeyAuth) defaultClient.getAuthentication("HMAC-SHA256");
HMAC-SHA256.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//HMAC-SHA256.setApiKeyPrefix("Token");
RequestFromGPToJBPCPlatformApi apiInstance = new RequestFromGPToJBPCPlatformApi();
BalanceRequest body = ; // BalanceRequest |
String contentType = contentType_example; // String |
X-Request-Sign xRequestSign = ; // X-Request-Sign |
try {
BalanceResponse result = apiInstance.balance(body, contentType, xRequestSign);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling RequestFromGPToJBPCPlatformApi#balance");
e.printStackTrace();
}
}
}
import io.swagger.client.api.RequestFromGPToJBPCPlatformApi;
public class RequestFromGPToJBPCPlatformApiExample {
public static void main(String[] args) {
RequestFromGPToJBPCPlatformApi apiInstance = new RequestFromGPToJBPCPlatformApi();
BalanceRequest body = ; // BalanceRequest |
String contentType = contentType_example; // String |
X-Request-Sign xRequestSign = ; // X-Request-Sign |
try {
BalanceResponse result = apiInstance.balance(body, contentType, xRequestSign);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling RequestFromGPToJBPCPlatformApi#balance");
e.printStackTrace();
}
}
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: HMAC-SHA256)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"X-Request-Sign"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"X-Request-Sign"];
BalanceRequest *body = ; //
String *contentType = contentType_example; //
X-Request-Sign *xRequestSign = ; //
RequestFromGPToJBPCPlatformApi *apiInstance = [[RequestFromGPToJBPCPlatformApi alloc] init];
// Balance
[apiInstance balanceWith:body
contentType:contentType
xRequestSign:xRequestSign
completionHandler: ^(BalanceResponse output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var PlatformConsumerReverseApi = require('platform_consumer_reverse_api');
var defaultClient = PlatformConsumerReverseApi.ApiClient.instance;
// Configure API key authorization: HMAC-SHA256
var HMAC-SHA256 = defaultClient.authentications['HMAC-SHA256'];
HMAC-SHA256.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//HMAC-SHA256.apiKeyPrefix['X-Request-Sign'] = "Token"
var api = new PlatformConsumerReverseApi.RequestFromGPToJBPCPlatformApi()
var body = ; // {{BalanceRequest}}
var contentType = contentType_example; // {{String}}
var xRequestSign = ; // {{X-Request-Sign}}
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.balance(bodycontentTypexRequestSign, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class balanceExample
{
public void main()
{
// Configure API key authorization: HMAC-SHA256
Configuration.Default.ApiKey.Add("X-Request-Sign", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("X-Request-Sign", "Bearer");
var apiInstance = new RequestFromGPToJBPCPlatformApi();
var body = new BalanceRequest(); // BalanceRequest |
var contentType = contentType_example; // String |
var xRequestSign = new X-Request-Sign(); // X-Request-Sign |
try
{
// Balance
BalanceResponse result = apiInstance.balance(body, contentType, xRequestSign);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling RequestFromGPToJBPCPlatformApi.balance: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: HMAC-SHA256
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-Request-Sign', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-Request-Sign', 'Bearer');
$api_instance = new Swagger\Client\ApiRequestFromGPToJBPCPlatformApi();
$body = ; // BalanceRequest |
$contentType = contentType_example; // String |
$xRequestSign = ; // X-Request-Sign |
try {
$result = $api_instance->balance($body, $contentType, $xRequestSign);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling RequestFromGPToJBPCPlatformApi->balance: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::RequestFromGPToJBPCPlatformApi;
# Configure API key authorization: HMAC-SHA256
$WWW::SwaggerClient::Configuration::api_key->{'X-Request-Sign'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'X-Request-Sign'} = "Bearer";
my $api_instance = WWW::SwaggerClient::RequestFromGPToJBPCPlatformApi->new();
my $body = WWW::SwaggerClient::Object::BalanceRequest->new(); # BalanceRequest |
my $contentType = contentType_example; # String |
my $xRequestSign = ; # X-Request-Sign |
eval {
my $result = $api_instance->balance(body => $body, contentType => $contentType, xRequestSign => $xRequestSign);
print Dumper($result);
};
if ($@) {
warn "Exception when calling RequestFromGPToJBPCPlatformApi->balance: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: HMAC-SHA256
swagger_client.configuration.api_key['X-Request-Sign'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['X-Request-Sign'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.RequestFromGPToJBPCPlatformApi()
body = # BalanceRequest |
contentType = contentType_example # String |
xRequestSign = # X-Request-Sign |
try:
# Balance
api_response = api_instance.balance(body, contentType, xRequestSign)
pprint(api_response)
except ApiException as e:
print("Exception when calling RequestFromGPToJBPCPlatformApi->balance: %s\n" % e)
Parameters
Header parameters
| Name | Description |
|---|---|
| Content-Type* |
String
Required
|
| x-request-sign* |
X-Request-Sign
Required
|
Body parameters
| Name | Description |
|---|---|
| body * |