ProductLayer SDK for Android


License

License

GroupId

GroupId

com.productlayer
ArtifactId

ArtifactId

ply-android-sdk
Last Version

Last Version

0.5.1
Release Date

Release Date

Type

Type

aar
Description

Description

ProductLayer SDK for Android
ProductLayer SDK for Android
Project URL

Project URL

http://developer.productlayer.com
Project Organization

Project Organization

ProductLayer GmbH
Source Code Management

Source Code Management

https://github.com/ProductLayer/ProductLayer-SDK-for-Android

Download ply-android-sdk

How to add to project

<!-- https://jarcasting.com/artifacts/com.productlayer/ply-android-sdk/ -->
<dependency>
    <groupId>com.productlayer</groupId>
    <artifactId>ply-android-sdk</artifactId>
    <version>0.5.1</version>
    <type>aar</type>
</dependency>
// https://jarcasting.com/artifacts/com.productlayer/ply-android-sdk/
implementation 'com.productlayer:ply-android-sdk:0.5.1'
// https://jarcasting.com/artifacts/com.productlayer/ply-android-sdk/
implementation ("com.productlayer:ply-android-sdk:0.5.1")
'com.productlayer:ply-android-sdk:aar:0.5.1'
<dependency org="com.productlayer" name="ply-android-sdk" rev="0.5.1">
  <artifact name="ply-android-sdk" type="aar" />
</dependency>
@Grapes(
@Grab(group='com.productlayer', module='ply-android-sdk', version='0.5.1')
)
libraryDependencies += "com.productlayer" % "ply-android-sdk" % "0.5.1"
[com.productlayer/ply-android-sdk "0.5.1"]

Dependencies

compile (5)

Group / Artifact Type Version
org.apache.httpcomponents : httpclient-android jar 4.3.5.1
com.productlayer : ply-java-sdk jar 0.5.0
org.springframework.android : spring-android-rest-template jar 2.0.0.M3
com.squareup.okhttp : okhttp jar 2.7.1
com.squareup.okio : okio jar 1.10.0

Project Modules

There are no modules declared in this project.

ProductLayer SDK for Android

productlayer logo

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

See ProductLayer in action in our prod.ly app.

We have SHUT DOWN

https://www.cocoanetics.com/2018/04/productlayer-post-mortem/

Usage

Gradle

compile 'com.productlayer.ply-android-sdk:0.5.1'
compile 'com.productlayer.ply-android-common:0.5.1'

Maven

<dependency>
    <groupId>com.productlayer</groupId>
    <artifactId>ply-android-sdk</artifactId>
    <version>0.5.1</version>
</dependency>
<dependency>
    <groupId>com.productlayer</groupId>
    <artifactId>ply-android-common</artifactId>
    <version>0.5.1</version>
</dependency>

Get your API key from developer.productlayer.com

PLYRestClientConfig config = new PLYRestClientConfig();
config.apiKey = "YOUR_API_KEY";

Create the PLYAndroid client

PLYAndroid client = new PLYAndroid(config);

Make an API call

ProductService.searchProductsByBrand(client, "Apple", null, null,
    new PLYCompletion<Product[]>() {
        @Override
        public void onSuccess(Product[] result) {
            // display results
        }

        @Override
        public void onError(QueryError error) {
        }
    }
);

This will run asynchronously, querying our API for all products by brand Apple.

To view the full functionality of our API please visit developer.productlayer.com.

Demo

The demo app showcases some of the components found in the common library:

  • ScannerActivity, a barcode scanner and lookup of a product on ProductLayer
  • GlobalTimelineFragment, a feed of the latest products and opinions
  • ProductFragment, everthing about a specific product: facts, opinions, images

The common library includes even more components to facilitate usage of the SDK: adapters, dialogs, views as well as full-blown UI fragments.

com.productlayer

ProductLayer

Versions

Version
0.5.1
0.5.0