Vorboss Product Availability API
- API version: 0.2.0
- Build date: 2024-05-10T11:59:02.518631+01:00[Europe/London]
This API is provided by Vorboss to allow customers to check which products are available at a given postcode.
Automatically generated by the Swagger Codegen
Building the API client library requires:
- Java 1.7+
- Maven/Gradle
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.
Add this dependency to your project's POM:
<dependency>
<groupId>com.vorboss</groupId>
<artifactId>product-availability</artifactId>
<version>0.2.0</version>
<scope>compile</scope>
</dependency>
Add this dependency to your project's build file:
compile "com.vorboss:product-availability:0.2.0"
At first generate the JAR by executing:
mvn clean package
Then manually install the following JARs:
target/product-availability-0.2.0.jar
target/lib/*.jar
Please follow the installation instruction and execute the following Java code:
import Com.Vorboss.*;
import Com.Vorboss.auth.*;
import Com.Vorboss.ProductAvailability.*;
import Com.Vorboss.ProductAvailability.ProductAvailabilityApi;
import java.io.File;
import java.util.*;
public class ProductAvailabilityApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
ProductAvailabilityApi apiInstance = new ProductAvailabilityApi();
String postcode = "postcode_example"; // String | UK Postcode to check availability for.
try {
Postcode result = apiInstance.confirmPostcode(postcode);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ProductAvailabilityApi#confirmPostcode");
e.printStackTrace();
}
}
}
All URIs are relative to /
Class | Method | HTTP request | Description |
---|---|---|---|
ProductAvailabilityApi | confirmPostcode | GET /product-availability/postcode/{postcode} | Check a postcode |
Authentication schemes defined for the API:
It's recommended to create an instance of ApiClient
per thread in a multithreaded environment to avoid any potential issues.