Building the API client library requires Maven to be installed.
To install the API client library to your local Maven repository, simply execute:
mvn install
To deploy it to a remote Maven repository instead, configure the settings of the repository and execute:
mvn deploy
Refer to the official documentation for more information.
Add this dependency to your project's POM:
<dependency>
<groupId>com.swift</groupId>
<artifactId>kyc-java</artifactId>
<version>1.0.0</version>
<scope>compile</scope>
</dependency>
Add this dependency to your project's build file:
compile "com.swift:kyc-java:1.0.0"
At first generate the JAR by executing:
mvn package
Then manually install the following JARs:
- target/kyc-java-1.0.0.jar
- target/lib/*.jar
Please follow the installation instruction and execute the following Java code:
import com.swift.ApiClient;
import com.swift.ApiException;
import com.swift.Configuration;
import com.swift.api.ListRetrievalApi;
import com.swift.auth.OAuth;
import com.swift.model.EntityList;
public class ListRetrievalApiEntitiesMyGetExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: Bearer
OAuth Bearer = (OAuth) defaultClient.getAuthentication("Bearer");
Bearer.setAccessToken("your_access_token");
ListRetrievalApi apiInstance = new ListRetrievalApi();
try {
EntityList result = apiInstance.entitiesMyGet();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ListRetrievalApi#entitiesMyGet");
e.printStackTrace();
}
}
}
All URIs are relative to https://sandbox.swift.com/kyc/v1
Class | Method | HTTP request | Description |
---|---|---|---|
ListRetrievalApi | counterpartiesMyGet | GET /entities/counterparty | Get My Counterparties |
ListRetrievalApi | entitiesMyGet | GET /entities/my | Get My Entities |
- Data11
- DataMycounterparty
- DataMyentity
- Document201
- DocumentObj
- EntityList
- IndustryClassifications
- LicenceInfo
- LicenceTypes
- LicencesInfo
- ListOfCounterparties
- SICCodes
- SanctionsListsInUsed
- SanctionsListsInUsedEU
- SanctionsListsInUsedG7
- SanctionsListsInUsedOFAC
- SanctionsListsInUsedOFSI
- SanctionsListsInUsedUN
Authentication schemes defined for the API:
- Type: OAuth
- Flow: password
- Authorization URL:
- Scopes: N/A
It's recommended to create an instance of ApiClient
per thread in a multithreaded environment to avoid any potential issues.