2017 © Pedro Peláez
 

library artifacia-client-php

image

artifacia/artifacia-client-php

  • Saturday, March 31, 2018
  • by ashish122
  • Repository
  • 2 Watchers
  • 0 Stars
  • 28 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 8 Versions
  • 0 % Grown

The README.md

Artifacia php Client

This php client is a simple wrapper around our powerful Visual Discovery API., (*1)

The wrapper allows you to create your own index of images on which you would like to enhance the product discovery experiences. It also allows you to get various types of recommendations which are listed below., (*2)

  • Visual Recommendation
  • Cross Product Recommendation
  • Personalized Recommendation

Installation

To install the package you can follow the steps:-, (*3)

composer require artifacia/artifacia-client-php

Getting Started

The API is really easy and simple to use. First you need to visit this page and request for username and password. Using that credentials you can create your constructor and get stated., (*4)

require __DIR__ . '/vendor/autoload.php';
$api_key = <api_key>;
use Artifacia\Client;
$client = new Client($api_key);

Creating your index

The first step is to create a index of the items that you would like to store in our databases to perform search against. If you don't have data ready right now you can quickly get started with our sample data. Once the data is stored and indexed we will inform you shortly., (*5)

$data = file_get_contents("./sample_data.json");
$data_indexing_response = $client->upload_item_data($data);
echo $data_indexing_response;

Performing Visual Recommendation

Once you receive a notification from us about the status of the indexed data, you are ready to search. You can search for a product ID indexed in the sample data you inserted/uploaded. And also you can specify the number of results to be returned as well as set the attribute (like color, pattern, material etc.) if you want to prioritize the result as given below., (*6)

$sample_prod_id = 2761;
$num = 4;
$filters = array('color' => 1, 'pattern' => 1);
$query_response = $client->get_visual_recommendation($sample_prod_id, $num, $filters);
echo $query_response;

The Versions

31/03 2018

0.1

0.1.0.0

  Sources   Download

11/11 2016

dev-master

9999999-dev

A php client to integrate Visual Recommendation feature from Artifacia API.

  Sources   Download

MIT

The Requires

  • php >=5.3

 

The Development Requires

  • php >=5.3

by Ashish

11/11 2016

0.1.3.3

0.1.3.3

A php client to integrate Visual Recommendation feature from Artifacia API.

  Sources   Download

MIT

The Requires

  • php >=5.3

 

The Development Requires

  • php >=5.3

by Ashish

12/09 2016

0.1.3.2

0.1.3.2

A php client to integrate Visual Recommendation feature from Artifacia API.

  Sources   Download

MIT

The Requires

  • php >=5.3

 

The Development Requires

  • php >=5.3

by Ashish

06/08 2016

0.1.3.1

0.1.3.1

A php client to integrate Visual Recommendation feature from Artifacia API.

  Sources   Download

MIT

The Requires

  • php >=5.3

 

The Development Requires

  • php >=5.3

by Ashish

03/08 2016

0.1.3

0.1.3.0

A php client to integrate Visual Recommendation feature from Artifacia API.

  Sources   Download

MIT

The Requires

  • php >=5.3

 

The Development Requires

  • php >=5.3

by Ashish

26/07 2016

0.1.2

0.1.2.0

A php client to integrate Visual Recommendation feature from Artifacia API.

  Sources   Download

MIT

The Requires

  • php >=5.3

 

The Development Requires

  • php >=5.3

by Ashish

23/07 2016

0.1.1

0.1.1.0

A php client to integrate Visual Recommendation feature from Artifacia API.

  Sources   Download

MIT

The Requires

  • php >=5.3

 

by Ashish