GithubHelp home page GithubHelp logo

ob-dsk-java-client's Introduction

swagger-java-client

AIS API

  • API version: 1.0.0
    • Build date: 2019-06-27T12:18:16.648Z

Account Information Service Provider API

For more information, please visit https://www.dskbank.bg

Automatically generated by the Swagger Codegen

Requirements

Building the API client library requires:

  1. Java 1.7+
  2. Maven/Gradle

Installation

To install the API client library to your local Maven repository, simply execute:

mvn clean install

To deploy it to a remote Maven repository instead, configure the settings of the repository and execute:

mvn clean deploy

Refer to the OSSRH Guide for more information.

Maven users

Add this dependency to your project's POM:

<dependency>
  <groupId>io.swagger</groupId>
  <artifactId>swagger-java-client</artifactId>
  <version>1.0.0</version>
  <scope>compile</scope>
</dependency>

Gradle users

Add this dependency to your project's build file:

compile "io.swagger:swagger-java-client:1.0.0"

Others

At first generate the JAR by executing:

mvn clean package

Then manually install the following JARs:

  • target/swagger-java-client-1.0.0.jar
  • target/lib/*.jar

Getting Started

Please follow the installation instruction and execute the following Java code:

import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AccountApi;

import java.io.File;
import java.util.*;

public class AccountApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure OAuth2 access token for authorization: OAuth2
        OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
        OAuth2.setAccessToken("YOUR ACCESS TOKEN");

        // Configure API key authorization: api-key-1
        ApiKeyAuth api-key-1 = (ApiKeyAuth) defaultClient.getAuthentication("api-key-1");
        api-key-1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //api-key-1.setApiKeyPrefix("Token");

        AccountApi apiInstance = new AccountApi();
        String accountId = "accountId_example"; // String | The account-id is retrieved by using a \"Read Account List\" call. The account-id is the \"resourceId\" attribute of the account structure. Its value is constant at least throughout the lifecycle of a given consent.
        UUID xRequestID = new UUID(); // UUID | ID of the request, unique to the call, as determined by the initiating party.
        String psUUserAgent = "psUUserAgent_example"; // String | The forwarded Agent header field of the http request between PSU and TPP, if available.
        String psUIPPort = "psUIPPort_example"; // String | The forwarded IP Address header field consists of the corresponding http request IP Address field between PSU and TPP, if available.
        String psUGeoLocation = "psUGeoLocation_example"; // String | The forwarded Geo Location header field of the corresponding http request between PSU and TPP if available.
        String psUAccept = "psUAccept_example"; // String | The forwarded IP Accept header fields consist of the corresponding HTTP request Accept header fields between PSU and TPP, if available.
        String psUAcceptCharset = "psUAcceptCharset_example"; // String | 
        String psUAcceptEncoding = "psUAcceptEncoding_example"; // String | 
        String psUAcceptLanguage = "psUAcceptLanguage_example"; // String | 
        String psUHttpMethod = "psUHttpMethod_example"; // String | HTTP method used at the PSU โ€“ TPP interface, if available. Valid values are\\: * GET * POST * PUT * PATCH * DELETE 
        String psUDeviceID = "psUDeviceID_example"; // String | UUID (Universally Unique Identifier) for a device, which is used by the PSU, if available.
        String psUIPAddress = "psUIPAddress_example"; // String | The forwarded IP Address header field consists of the corresponding HTTP request IP Address field between PSU and TPP.
        try {
            InlineResponse2001 result = apiInstance.getAccountByAccountId(accountId, xRequestID, psUUserAgent, psUIPPort, psUGeoLocation, psUAccept, psUAcceptCharset, psUAcceptEncoding, psUAcceptLanguage, psUHttpMethod, psUDeviceID, psUIPAddress);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountApi#getAccountByAccountId");
            e.printStackTrace();
        }
    }
}

Documentation for API Endpoints

All URIs are relative to https://localhost/v1

Class Method HTTP request Description
AccountApi getAccountByAccountId GET /accounts/{account-id} Read Account Details
AccountApi getAccounts GET /accounts Read account list
AccountApi getBalanceForAccountByAccountId GET /accounts/{account-id}/balances Read Balance
AccountApi getTransactionsForAccountByAccountId GET /accounts/{account-id}/transactions Read Transaction List
ConsentApi deleteConsentWithID DELETE /consents/{consent-id} Delete consent
ConsentApi getAllConsets GET /consents Get Consent
ConsentApi getConsent GET /consents/{consent-id} Get Consent Request
ConsentApi getConsentStatus GET /consents/{consent-id}/status Consent status request
ConsentApi postConsent POST /consents Create consent

Documentation for Models

Documentation for Authorization

Authentication schemes defined for the API:

OAuth2

api-key-1

  • Type: API key
  • API key parameter name: X-IBM-Client-Id
  • Location: HTTP header

Recommendation

It's recommended to create an instance of ApiClient per thread in a multithreaded environment to avoid any potential issues.

Author

[email protected]

ob-dsk-java-client's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.