\HEXONETConnection

HEXONET Connection

Summary

Methods
Properties
Constants
__construct()
callRawHttp()
callRaw()
call()
connect()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

__construct()

__construct(mixed|string|int  params) : 

Constructor

Parameters

mixed|string|int params

An array of credentials for the connection

Returns

callRawHttp()

callRawHttp(mixed|string|int  command, array|string  config = null) : 

Make a curl API call over HTTP(S) and returns the response as a string

Parameters

mixed|string|int command

The command array

array|string config

The config array

Throws

\HEXONET\Exception

Throws exception if can't init curl

Returns

callRaw()

callRaw(mixed|string|int  command, array|string  config = null) : 

Make a curl API call and returns the response as a string

Parameters

mixed|string|int command

The command array

array|string config

The config array or if given as string, the s_user

Returns

call()

call(mixed|string|int  command, array|string  config = null) : 

Make a curl API call and returns the response as a response object

Parameters

mixed|string|int command

The command array

array|string config

The config array or if given as string, the s_user

Returns

connect()

connect(mixed|string|int  params = array()) : \HEXONET\Connection

Function connect Returns a Connection object connected to the API Server (URL, ENTITY, LOGIN, PASSWORD are mandatory to connect the server, ROLE ans USER are optional)

Parameters

mixed|string|int params

The credentials for the connection

Throws

\Exception

Throws exception when credentials missing

Returns

\HEXONET\Connection —

A connection to the API Server