Overview

Namespaces

  • PHP
  • predictionio

Classes

  • BaseClient
  • EngineClient
  • EventClient

Exceptions

  • PredictionIOAPIError
  • Overview
  • Namespace
  • Class
  • Tree

Class BaseClient

Base client for Event and Engine client

Direct known subclasses

predictionio\EngineClient, predictionio\EventClient
Abstract
Namespace: predictionio
Located at predictionio/BaseClient.php
Methods summary
public
# __construct( string $baseUrl, float $timeout, float $connectTimeout )

Parameters

$baseUrl
string
Base URL to the server
$timeout
float
Timeout of the request in seconds. Use 0 to wait indefinitely
$connectTimeout
float
Number of seconds to wait while trying to connect to a server
public string
# getStatus( )

Get the status of the Event Server or Engine Instance

Get the status of the Event Server or Engine Instance

Returns

string
status
protected array
# sendRequest( string $method, string $url, string $body )

Send a HTTP request to the server

Send a HTTP request to the server

Parameters

$method
string
HTTP request method
$url
string
Relative or absolute url
$body
string
HTTP request body

Returns

array
JSON response

Throws

predictionio\PredictionIOAPIError
Request error
Properties summary
public mixed $client
#
PredictionIO API PHP Client API documentation generated by ApiGen 2.8.0