RestConnection class represents a REST API connection created in PHPRunner. It has methods for running requests, authenticating, processing the results etc.
Use getRESTConn function to obtain an instance of RestConnection.
$rconn = getRESTConn("my api");
where "my api" is the REST API Connection name as it appears in PHPRunner.
Omit the name if you have only one REST API connection in your project:
$rconn = getRESTConn();