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