2017 © Pedro Peláez
 

library watson

A simple PHP library for accessing IBM's Watson API services

image

bq/watson

A simple PHP library for accessing IBM's Watson API services

  • Wednesday, March 22, 2017
  • by joeblake
  • Repository
  • 0 Watchers
  • 0 Stars
  • 9 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

Watson PHP Client

A simple PHP library for accessing IBM's Watson API services, (*1)

Basic Setup:


$service = 'retrieve-and-rank';
$config = new \stdClass();
$config->username = 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxx';
$config->password = 'xxxxxxxxxxxxxx';
$config->url = sprintf('https://gateway.watsonplatform.net/%s/api',$service);
$config->version = 'v1';

$transportConfig = ['auth' =>  [$config->username, $config->password]];

$client = new Watson\Client($service,$config,$transportConfig);

$clientInstance = $client->getClientInstance();
$clientInstance->setServiceUrl($config->url);
$clientInstance->setServiceVersion($config->version);

TODO

-- Implement unit tests -- Improve method returning and exception throwing -- Get rid of Monolog dependency (error logging should not be handled by library), (*2)

The Versions

22/03 2017

dev-master

9999999-dev

A simple PHP library for accessing IBM's Watson API services

  Sources   Download

MIT

The Requires

 

by Joe Blake

php rest sdk client ibm watson integration

22/03 2017

1.1.2.x-dev

1.1.2.9999999-dev

A simple PHP library for accessing IBM's Watson API services

  Sources   Download

MIT

The Requires

 

by Joe Blake

php rest sdk client ibm watson integration

20/03 2017

1.1.1.x-dev

1.1.1.9999999-dev

A simple PHP library for accessing IBM's Watson API services

  Sources   Download

MIT

The Requires

 

by Joe Blake

php rest sdk client ibm watson integration

18/03 2017

1.1.0.x-dev

1.1.0.9999999-dev

A simple PHP library for accessing IBM's Watson API services

  Sources   Download

MIT

The Requires

 

by Joe Blake

php rest sdk client ibm watson integration

15/03 2017

1.0.1.x-dev

1.0.1.9999999-dev

A simple PHP library for accessing IBM's Watson API services

  Sources   Download

MIT

The Requires

 

by Joe Blake

php rest sdk client ibm watson integration