accountsCallBack
Return information about user's payment accounts for asynchronous call
/v1.0/accounts/v1.0/accountsCallBack
Usage and SDK Samples
curl -X POST -H "X-API-Key: [[apiKey]]" "https://callbackUrl/v1.0/accounts/v1.0/accountsCallBack"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AISApi;
import java.io.File;
import java.util.*;
public class AISApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: ApiKeyAuth
ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
ApiKeyAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.setApiKeyPrefix("Token");
AISApi apiInstance = new AISApi();
String xAPIKey = xAPIKey_example; // String | The value of the X-API-Key should be taken from the appropriate preceding request that the callback request is response to.
String acceptEncoding = acceptEncoding_example; // String | Gzip, deflate
String acceptLanguage = acceptLanguage_example; // String | Prefered language of response
String acceptCharset = acceptCharset_example; // String | UTF-8
String xJWSSIGNATURE = xJWSSIGNATURE_example; // String | Detached JWS signature of the body of the payload
AccountsRequest accountsData = ; // AccountsRequest | Data with Accounts Requested
try {
CallBackResponse result = apiInstance.accountsCallBack(xAPIKey, acceptEncoding, acceptLanguage, acceptCharset, xJWSSIGNATURE, accountsData);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AISApi#accountsCallBack");
e.printStackTrace();
}
}
}
import io.swagger.client.api.AISApi;
public class AISApiExample {
public static void main(String[] args) {
AISApi apiInstance = new AISApi();
String xAPIKey = xAPIKey_example; // String | The value of the X-API-Key should be taken from the appropriate preceding request that the callback request is response to.
String acceptEncoding = acceptEncoding_example; // String | Gzip, deflate
String acceptLanguage = acceptLanguage_example; // String | Prefered language of response
String acceptCharset = acceptCharset_example; // String | UTF-8
String xJWSSIGNATURE = xJWSSIGNATURE_example; // String | Detached JWS signature of the body of the payload
AccountsRequest accountsData = ; // AccountsRequest | Data with Accounts Requested
try {
CallBackResponse result = apiInstance.accountsCallBack(xAPIKey, acceptEncoding, acceptLanguage, acceptCharset, xJWSSIGNATURE, accountsData);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AISApi#accountsCallBack");
e.printStackTrace();
}
}
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"X-API-Key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"X-API-Key"];
String *xAPIKey = xAPIKey_example; // The value of the X-API-Key should be taken from the appropriate preceding request that the callback request is response to.
String *acceptEncoding = acceptEncoding_example; // Gzip, deflate
String *acceptLanguage = acceptLanguage_example; // Prefered language of response
String *acceptCharset = acceptCharset_example; // UTF-8
String *xJWSSIGNATURE = xJWSSIGNATURE_example; // Detached JWS signature of the body of the payload
AccountsRequest *accountsData = ; // Data with Accounts Requested
AISApi *apiInstance = [[AISApi alloc] init];
// Return information about user's payment accounts for asynchronous call
[apiInstance accountsCallBackWith:xAPIKey
acceptEncoding:acceptEncoding
acceptLanguage:acceptLanguage
acceptCharset:acceptCharset
xJWSSIGNATURE:xJWSSIGNATURE
accountsData:accountsData
completionHandler: ^(CallBackResponse output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var PolishApi = require('polish_api');
var defaultClient = PolishApi.ApiClient.instance;
// Configure API key authorization: ApiKeyAuth
var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.apiKeyPrefix['X-API-Key'] = "Token"
var api = new PolishApi.AISApi()
var xAPIKey = xAPIKey_example; // {String} The value of the X-API-Key should be taken from the appropriate preceding request that the callback request is response to.
var acceptEncoding = acceptEncoding_example; // {String} Gzip, deflate
var acceptLanguage = acceptLanguage_example; // {String} Prefered language of response
var acceptCharset = acceptCharset_example; // {String} UTF-8
var xJWSSIGNATURE = xJWSSIGNATURE_example; // {String} Detached JWS signature of the body of the payload
var accountsData = ; // {AccountsRequest} Data with Accounts Requested
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.accountsCallBack(xAPIKey, acceptEncoding, acceptLanguage, acceptCharset, xJWSSIGNATURE, accountsData, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class accountsCallBackExample
{
public void main()
{
// Configure API key authorization: ApiKeyAuth
Configuration.Default.ApiKey.Add("X-API-Key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("X-API-Key", "Bearer");
var apiInstance = new AISApi();
var xAPIKey = xAPIKey_example; // String | The value of the X-API-Key should be taken from the appropriate preceding request that the callback request is response to.
var acceptEncoding = acceptEncoding_example; // String | Gzip, deflate
var acceptLanguage = acceptLanguage_example; // String | Prefered language of response
var acceptCharset = acceptCharset_example; // String | UTF-8
var xJWSSIGNATURE = xJWSSIGNATURE_example; // String | Detached JWS signature of the body of the payload
var accountsData = new AccountsRequest(); // AccountsRequest | Data with Accounts Requested
try
{
// Return information about user's payment accounts for asynchronous call
CallBackResponse result = apiInstance.accountsCallBack(xAPIKey, acceptEncoding, acceptLanguage, acceptCharset, xJWSSIGNATURE, accountsData);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling AISApi.accountsCallBack: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiKeyAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer');
$api_instance = new Swagger\Client\Api\AISApi();
$xAPIKey = xAPIKey_example; // String | The value of the X-API-Key should be taken from the appropriate preceding request that the callback request is response to.
$acceptEncoding = acceptEncoding_example; // String | Gzip, deflate
$acceptLanguage = acceptLanguage_example; // String | Prefered language of response
$acceptCharset = acceptCharset_example; // String | UTF-8
$xJWSSIGNATURE = xJWSSIGNATURE_example; // String | Detached JWS signature of the body of the payload
$accountsData = ; // AccountsRequest | Data with Accounts Requested
try {
$result = $api_instance->accountsCallBack($xAPIKey, $acceptEncoding, $acceptLanguage, $acceptCharset, $xJWSSIGNATURE, $accountsData);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AISApi->accountsCallBack: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AISApi;
# Configure API key authorization: ApiKeyAuth
$WWW::SwaggerClient::Configuration::api_key->{'X-API-Key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'X-API-Key'} = "Bearer";
my $api_instance = WWW::SwaggerClient::AISApi->new();
my $xAPIKey = xAPIKey_example; # String | The value of the X-API-Key should be taken from the appropriate preceding request that the callback request is response to.
my $acceptEncoding = acceptEncoding_example; # String | Gzip, deflate
my $acceptLanguage = acceptLanguage_example; # String | Prefered language of response
my $acceptCharset = acceptCharset_example; # String | UTF-8
my $xJWSSIGNATURE = xJWSSIGNATURE_example; # String | Detached JWS signature of the body of the payload
my $accountsData = WWW::SwaggerClient::Object::AccountsRequest->new(); # AccountsRequest | Data with Accounts Requested
eval {
my $result = $api_instance->accountsCallBack(xAPIKey => $xAPIKey, acceptEncoding => $acceptEncoding, acceptLanguage => $acceptLanguage, acceptCharset => $acceptCharset, xJWSSIGNATURE => $xJWSSIGNATURE, accountsData => $accountsData);
print Dumper($result);
};
if ($@) {
warn "Exception when calling AISApi->accountsCallBack: $@\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: ApiKeyAuth
swagger_client.configuration.api_key['X-API-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['X-API-Key'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.AISApi()
xAPIKey = xAPIKey_example # String | The value of the X-API-Key should be taken from the appropriate preceding request that the callback request is response to.
acceptEncoding = acceptEncoding_example # String | Gzip, deflate
acceptLanguage = acceptLanguage_example # String | Prefered language of response
acceptCharset = acceptCharset_example # String | UTF-8
xJWSSIGNATURE = xJWSSIGNATURE_example # String | Detached JWS signature of the body of the payload
accountsData = # AccountsRequest | Data with Accounts Requested
try:
# Return information about user's payment accounts for asynchronous call
api_response = api_instance.accounts_call_back(xAPIKey, acceptEncoding, acceptLanguage, acceptCharset, xJWSSIGNATURE, accountsData)
pprint(api_response)
except ApiException as e:
print("Exception when calling AISApi->accountsCallBack: %s\n" % e)
Parameters
Header parameters
Name | Description |
---|---|
X-API-Key* |
String
The value of the X-API-Key should be taken from the appropriate preceding request that the callback request is response to.
Required
|
Accept-Encoding* |
String
Gzip, deflate
Required
|
Accept-Language* |
String
Prefered language of response
Required
|
Accept-Charset* |
String
UTF-8
Required
|
X-JWS-SIGNATURE* |
String
Detached JWS signature of the body of the payload
Required
|
Body parameters
Name | Description |
---|---|
accountsData * |
Responses
Status: 200 - Success
Name | Type | Format | Description |
---|---|---|---|
Date | String | Request timestamp in RFC 5322 date and time format | |
Content-Type | String | Standard HTTP Header; Represents the format of the payload returned in the response | |
Content-Encoding | String | Gzip, deflate | |
X-JWS-SIGNATURE | String | Detached JWS signature of the body of the response |