Skip to content

ProductLayer/ProductLayer-SDK-for-Java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published

Languages