Environments
Class to establish a connection with CATI REST API on different Forsta sites
Methods
- CreateLogOnSoapClient(string url)
-
Creates LongOn SOAP client to login to Horizons system
Parameters
- url
-
URL to LogOn web service
Returns
Instance of LogOnSoapClient object
- LogonUser(string url, string userName, string password)
-
Login user to Horizons system
Parameters
- url
-
URL to LogOn web service
- userName
-
User login
- password
-
User password
Returns
Value of xConfirmitApiKey to send with http requests to the CATI REST API
- CreateCatiRestClient(string url, string xConfirmitApiKey, int companyId, string proxy)
-
Creates instance of CATI REST client to send HTTP requests to CATI REST API by xConfirmitApiKey
Parameters
- url
-
URL to CATI web service
- xConfirmitApiKey
-
xConfirmitApiKey value
- companyId
-
Unique identifier of the company
- proxy
-
Proxy address if needed
Returns
Instance of the RestClient object
- CreateCatiRestClient(string url, string logonUrl, string userName, string password, int companyId, string proxy)
-
Creates CATI REST client to send http requests to CATI REST API by user login and password