Connection

ISPAPI Connection

package

ISPAPI

Methods

Constructor

__construct(array $params) 

Arguments

$params

array

An array of credentials for the connection

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

call_raw_http(array $command, array|string $config = null) 
throws

Throws exception if can't init curl

Arguments

$command

array

The command array

$config

array|string

The config array | subuser if string

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

call_raw(array $command, array|string $config = null) 

Arguments

$command

array

The command array

$config

array|string

The config array or if given as string, the s_user

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

call(array $command, array|string $config = null) 

Arguments

$command

array

The command array

$config

array|string

The config array or if given as string, the s_user

Properties

The URL of the API Server

url : string
var

Type(s)

string

The entity string for the connection

entity : string

OT&E = 1234 LIVE = 54cd

var

Type(s)

string

The password for the connection

password : string
var

Type(s)

string

The sub user for the connection

user : string
var

Type(s)

string

The role user for the connection

role : string
var

Type(s)

string