2017 © Pedro Peláez
 

library ntokloapi-php

API connector for ntoklo recommendations engine

image

ntoklo/ntokloapi-php

API connector for ntoklo recommendations engine

  • Wednesday, January 24, 2018
  • by fu.ntoklo
  • Repository
  • 4 Watchers
  • 0 Stars
  • 16 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 7 Versions
  • 0 % Grown

The README.md

nToklo API PHP connector

Version: 1.0.5 stable, (*1)

This library will allow you to connect to the nToklo API and create your own applications, get tokens and the results. Full documentation of the API can be found in the nToklo dev website, (*2)

Installation

Composer

``` bash $ composer require ntoklo/ntokloapi-php, (*3)



### Usage You can see how to use this library on the [documentation](http://ntokloapi-php.readthedocs.org/en/latest/) Include the require path to autoload.php and instantiate a new NtokloApi class and pass through the nToklo api key and secret. ``` php require "vendor/autoload.php"; $api = new NtokloApi('nToklo API key', 'nToklo API secret');

Examples

Events

Events API allows customers to send nToklo user activity. Click here for more info on Events, (*4)

``` php $api->postEvent( $array );, (*5)


#### Add Products Add a new product to the Ntoklo API [Click here for more info on posting product](http://docs.ntoklo.com/start.php/api_reference:products) ``` php $api->postProduct( $array );

Get product

Get a product by ID Click here for more info on getting product by Id, (*6)

``` php $api->getProduct( $productId );, (*7)


#### Recommendations Recommendations API allows customers to retrieve recommendations based on user history and product attributes [Click here for more info on recommendations](http://docs.ntoklo.com/start.php/api_reference:recommendations) ``` php $api->recommendations( $userId, $productId, $scope, $value );

Charts

Charts API allows customers to retrieve a list of popular products. Charts represents a rolling time window (daily or weekly) and can be scoped by product attributes and filtered by action. Click here for more info on charts, (*8)

``` php $api->chart( $timestamp, $scope, $value, $action, $tw, $maxItems );, (*9)



#### Add to blacklist Add to blacklist [Click here for more info on adding product to blacklist](http://docs.ntoklo.com/start.php/api_reference:blacklist) ``` php $api->addBlacklist($productId);

Remove from blacklist

Remove from blacklist Click here for more info on removing product from blacklist, (*10)

``` php $api->removeBlacklist($productId);, (*11)



#### Get blacklist product Gettin all blacklisted product [Click here for more info on getting blacklisted products](http://docs.ntoklo.com/start.php/api_reference:blacklist) ```php $api->fetchBlacklist();

Features

This is a list of the functionality that is available on this API connector:, (*12)

  • postEvent($date);
  • postProduct($data_product);
  • getProduct($productId);
  • recommendations($userId = null, $productId = null, $scope = null, $value = null);
  • chart($timestamp = null, $scope = null, $value = null, $action = null, $tw = null, $maxItems = null);
  • addBlacklist($productId);
  • removeBlacklist($productId);
  • fetchBlacklist();

Authors

License

This library is licensed under the Apache 2.0 license. See LICENSE for more details, (*13)

Copyright 2015 nToklo Ltd., (*14)

The Versions

24/01 2018

dev-master

9999999-dev https://github.com/ntoklo/ntokloapi-php

API connector for ntoklo recommendations engine

  Sources   Download

Apache-2.0

The Requires

  • php >=5.5

 

The Development Requires

api connector recommendations ntoklo

30/09 2015

1.0.5

1.0.5.0 https://github.com/ntoklo/ntokloapi-php

API connector for ntoklo recommendations engine

  Sources   Download

Apache-2.0

The Requires

  • php >=5.5

 

The Development Requires

api connector recommendations ntoklo

25/09 2015

1.0.3

1.0.3.0 https://github.com/ntoklo/ntokloapi-php

API connector for ntoklo recommendations engine

  Sources   Download

Apache-2.0

The Requires

  • php >=5.6

 

The Development Requires

api connector recommendations ntoklo

25/08 2015

1.0.2

1.0.2.0 https://github.com/ntoklo/ntokloapi-php

API connector for ntoklo recommendations engine

  Sources   Download

Apache-2.0

The Development Requires

api connector recommendations ntoklo

21/08 2015

1.0.1

1.0.1.0 https://github.com/ntoklo/ntokloapi-php

API connector for ntoklo recommendations engine

  Sources   Download

Apache-2.0

The Development Requires

api connector recommendations ntoklo

21/08 2015

1.0.0

1.0.0.0 https://github.com/ntoklo/ntokloapi-php

API connector for ntoklo recommendations engine

  Sources   Download

Apache-2.0

The Development Requires

api connector recommendations ntoklo

21/08 2015

1.0.0-beta

1.0.0.0-beta https://github.com/ntoklo/ntokloapi-php

API connector for ntoklo recommendations engine

  Sources   Download

Apache-2.0

The Development Requires

api connector recommendations ntoklo