Please enable JavaScript to view this site.

Navigation: Advanced topics > Programming topics > REST API Connections > RestConnection class

About RestConnection class

Scroll Prev Next More

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();

Created with Help+Manual 7 and styled with Premium Pack Version 3 © by EC Software