Overview

Namespaces

  • PHP
  • predictionio

Classes

  • BaseClient
  • EngineClient
  • EventClient

Exceptions

  • PredictionIOAPIError
  • Overview
  • Namespace
  • Class
  • Tree

Class EngineClient

Client for connecting to an Engine Instance

predictionio\BaseClient
Extended by predictionio\EngineClient
Namespace: predictionio
Located at predictionio/EngineClient.php
Methods summary
public
# __construct( string $baseUrl = "http://localhost:8000", float $timeout = 0, float $connectTimeout = 5 )

Parameters

$baseUrl
string
Base URL to the Engine Instance. Default is localhost:8000.
$timeout
float
Timeout of the request in seconds. Use 0 to wait indefinitely Default is 0.
$connectTimeout
float
Number of seconds to wait while trying to connect to a server. Default is 5.

Overrides

predictionio\BaseClient::__construct()
public array
# sendQuery( array $query )

Send prediction query to an Engine Instance

Send prediction query to an Engine Instance

Parameters

$query
array
Query

Returns

array
JSON response

Throws

predictionio\PredictionIOAPIError
Request error
Methods inherited from predictionio\BaseClient
getStatus(), sendRequest()
Properties inherited from predictionio\BaseClient
$client
PredictionIO API PHP Client API documentation generated by ApiGen 2.8.0