2017 © Pedro Peláez
 

library vidora-api-client

A library that wraps the Vidora API

image

discoverydn/vidora-api-client

A library that wraps the Vidora API

  • Thursday, November 19, 2015
  • by robsaurini
  • Repository
  • 5 Watchers
  • 2 Stars
  • 20 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 3 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

Vidora API Client

Vidora is an AI-driven recommendaiton service that allows you to surface content via their API. The intention of this library is to make getting data from Vidora as simple as possible., (*1)

Installation

Git

git clone git@github.com:discoverydn/vidora-api-client.git, (*2)

Composer

composer require discoverydn/vidora-api-client dev-master && composer dumpautoload, (*3)

Usage

There are two main components: the client and the request. The client uses the request to fetch data from the API. The Vidora API has two main types of requests: Behavioral, which POSTs data and Personalization which GETs data., (*4)

example:, (*5)

$vidoraClient = new \Discoverydn\VidoraApiClient\Client('api-key', 'api-secret');

$request = new \Discoverydn\VidoraApiClient\Requests\Personalization\UserRecommendationsRequest($vidoraClient, 'user-id', ['param1' => 'value1', 'param2' => 'value2']);

$data = $vidoraClient->fetch($request); // {"items": [ {...

Testing

In order to fully test the code, you'll need to add a .env file with the following:, (*6)

VIDORA_KEY=<your-api-key>
VIDORA_SECRET=<your-api-secret>
VIDORA_TEST_FETCH_CATEGORY=<your-test-category>
VIDORA_TEST_USER_ID=<your-test-user-id>
VIDORA_TEST_ITEM_ID=<your-test-item-id>

The Versions

19/11 2015

dev-master

9999999-dev

A library that wraps the Vidora API

  Sources   Download

MIT

The Requires

 

The Development Requires

07/11 2015

v0.3.3

0.3.3.0

A library that wraps the Vidora API

  Sources   Download

MIT

The Requires

 

The Development Requires

29/10 2015

dev-dev

dev-dev

A library that wraps the Vidora API

  Sources   Download

MIT

The Requires

 

The Development Requires

29/10 2015

v0.2.10

0.2.10.0

A library that wraps the Vidora API

  Sources   Download

MIT

The Requires

 

The Development Requires

26/10 2015

v0.2.9

0.2.9.0

A library that wraps the Vidora API

  Sources   Download

MIT

The Requires

 

The Development Requires

26/10 2015

v0.2.3

0.2.3.0

A library that wraps the Vidora API

  Sources   Download

MIT

The Requires

 

The Development Requires