TimeTrex API Manual

TimeTrexClientAPI
in package

Table of Contents

$base_url  : mixed
$class_factory  : mixed
$class_factory_method  : mixed
$curl_obj  : mixed
$idempotent_key  : mixed
$namespace  : mixed
$protocol  : mixed
$protocol_version  : mixed
$response_headers  : mixed
$session_hash  : mixed
$session_id  : mixed
$soap_obj  : mixed
__call()  : bool|TimeTrexClientAPIReturnHandler
__construct()  : mixed
TimeTrexClientAPI constructor.
__destruct()  : bool
buildURL()  : string
calcSessionHash()  : string
Use the SessionHash to ensure the URL for the session doesn't get changed out from under us without re-logging in.
call()  : bool|TimeTrexClientAPIReturnHandler
generateUUID()  : string
Basic UUID generator that does not require any 3rd party libraries.
getClientConnectionObject()  : SoapClient|resource
getIdempotentKey()  : string
getProtocol()  : string
getSessionHash()  : null
getSessionID()  : bool|string
handleCurlResponseHeaders()  : mixed
isFault()  : mixed
isLoggedIn()  : mixed
Login()  : bool
Logout()  : mixed
registerAPIKey()  : bool
setClass()  : bool
setIdempotentKey()  : bool
When set to FALSE, idempotent requests are disabled. Otherwise they are enabled by default.
setMethod()  : bool
setProtocol()  : bool
setSessionID()  : bool
setURL()  : bool
handleServerCookies()  : bool
Persist cookies in memory across all HTTP calls.
setSessionHash()  : bool

Properties

Methods

__construct()

TimeTrexClientAPI constructor.

public __construct([null $class = null ][, null $url = null ][, string $session_id = null ]) : mixed
Parameters
$class : null = null
$url : null = null
$session_id : string = null

UUID

Return values
mixed

calcSessionHash()

Use the SessionHash to ensure the URL for the session doesn't get changed out from under us without re-logging in.

public calcSessionHash( $url, string $session_id) : string
Parameters
$url :
$session_id : string

UUID

Return values
string

generateUUID()

Basic UUID generator that does not require any 3rd party libraries.

public generateUUID([null $data = null ]) : string
Parameters
$data : null = null
Tags
throws
Exception
Return values
string

getClientConnectionObject()

public getClientConnectionObject() : SoapClient|resource
Return values
SoapClient|resource

handleCurlResponseHeaders()

public handleCurlResponseHeaders(mixed $curl, mixed $header) : mixed
Parameters
$curl : mixed
$header : mixed
Return values
mixed

Login()

public Login( $user_name[, null $password = null ][, string $type = 'USER_NAME' ]) : bool
Parameters
$user_name :
$password : null = null
$type : string = 'USER_NAME'
Return values
bool

registerAPIKey()

public registerAPIKey( $user_name,  $password[, mixed $end_point = null ]) : bool
Parameters
$user_name :
$password :
$end_point : mixed = null
Return values
bool

setIdempotentKey()

When set to FALSE, idempotent requests are disabled. Otherwise they are enabled by default.

public setIdempotentKey( $value) : bool
Parameters
$value :
Return values
bool

handleServerCookies()

Persist cookies in memory across all HTTP calls.

private handleServerCookies() : bool
Return values
bool

Search results