Properties

$SessionId

$SessionId : 

Session id.

Type

$ServerPath

$ServerPath : 

Server path.

Type

$Headers

$Headers : string

Headers.

Type

string

Methods

__construct()

__construct(string  $Service) 

Constructor.

Parameters

string $Service
  • Service name.

test_valid_connect()

test_valid_connect() 

Testing API connection.

test_invalid_connect()

test_invalid_connect() 

Testing API invalid connection.

test_set_valid_token()

test_set_valid_token() 

Testing setting valid token.

test_set_invalid_token()

test_set_invalid_token() 

Testing setting invalid token.

test_list()

test_list() 

Method tests list endpoint.

test_cross_domain_list()

test_cross_domain_list() 

Method tests cross domain list endpoint.

test_records_count()

test_records_count() 

Method tests records counter.

test_list_page()

test_list_page() 

Method tests list page endpoint.

test_last_records2()

test_last_records2() 

Method tests last records fetching.

test_last_records0()

test_last_records0() 

Method tests last records fetching.

test_create_page()

test_create_page() 

Method tests creation form endpoint.

test_update_page()

test_update_page() 

Method tests updating form endpoint.

assert_errors()

assert_errors(string  $Content, string  $Message) 

Method asserts for errors and warnings in the html code.

Parameters

string $Content
  • Asserting content.
string $Message
  • Message to be displayed in case of error.

assert_json()

assert_json(mixed  $JSONResult, string  $Result) 

Method asserts JSON.

Parameters

mixed $JSONResult
  • Result of the call;
string $Result
  • Raw result of the call.

post_http_request()

post_http_request(array  $Data, string  $URL) : mixed

Method sends post request.

Parameters

array $Data
  • Request data;
string $URL
  • Requesting endpoint.

Returns

mixed —

Request result.

prepare_get_options()

prepare_get_options() 

Method prepares GET request options.

get_html_request()

get_html_request(  $URL) 

Method sends GET request.

Parameters

$URL

valid_connect()

valid_connect() : mixed

Method performs valid connect.

Returns

mixed —

Result of the connection.