ProductLayer SDK for Java
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src/main/java/com/productlayer
.gitignore
LICENSE
README.md
pom.xml

README.md

ProductLayer SDK for Java

productlayer logo

The ultimate product information API, enabling a new breed of product-centric apps. This is the Java SDK. We also provide SDKs for Android and iOS.

You can sign up for a developer account at developer.productlayer.com

To clone the project execute the following command:

git clone https://github.com/ProductLayer/ProductLayer-SDK-for-Java.git

Usage

Grade

compile 'com.productlayer.ply-sdk-java:0.5.0'

Maven

<dependency>
	<groupId>com.productlayer</groupId>
	<artifactId>ply-sdk-java</artifactId>
	<version>0.5.0</version>
</dependency>

Get an api-key

https://developer.productlayer.com


Example

// initialise the config
PLYRestClientConfig config = new PLYRestClientConfig("https", "api.productlayer.com", 80, "0.5", "<API_KEY>", false, null, 0);
	
// create the productlayer client
PLYRestClient client = new PLYRestClient(config);

// Request a product via a global unique gtin
Product foundProduct = ProductService.getProductForGtin(client, "0888462563369", "de", false, null);
  • ConsoleClient - A simple console client to request product infos from the productlayer API