/// <summary> /// Say Hello This method enables you to check if your system can connect to our system. You can even use a web browser to verify a connection to our system. Applied a maximum length for the name parameter of 100 via a route constraint /// </summary> /// <exception cref="Trulioo.SDK.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="mode">trial or live</param> /// <param name="name">Name to be returned in the response</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (string)</returns> public async System.Threading.Tasks.Task <Trulioo.SDK.Client.ApiResponse <string> > SayHelloWithHttpInfoAsync(string mode, string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'mode' is set if (mode == null) { throw new Trulioo.SDK.Client.ApiException(400, "Missing required parameter 'mode' when calling ConnectionApi->SayHello"); } // verify the required parameter 'name' is set if (name == null) { throw new Trulioo.SDK.Client.ApiException(400, "Missing required parameter 'name' when calling ConnectionApi->SayHello"); } Trulioo.SDK.Client.RequestOptions localVarRequestOptions = new Trulioo.SDK.Client.RequestOptions(); String[] _contentTypes = new String[] { }; // to determine the Accept header String[] _accepts = new String[] { "application/json", "text/json" }; var localVarContentType = Trulioo.SDK.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Trulioo.SDK.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("mode", Trulioo.SDK.Client.ClientUtils.ParameterToString(mode)); // path parameter localVarRequestOptions.PathParameters.Add("name", Trulioo.SDK.Client.ClientUtils.ParameterToString(name)); // path parameter // make the HTTP request var localVarResponse = await this.AsynchronousClient.GetAsync <string>("/{mode}/connection/v1/sayhello/{name}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("SayHello", localVarResponse); if (_exception != null) { throw _exception; } } return(localVarResponse); }
/// <summary> /// Connection Async Callback Url If set, the transaction will run asynchronously and Trulioo will try to update the client with transaction state updates until completed. If callback is not desired but the client wants to initiate an asynchronous transaction, provide https://api.globaldatacompany.com/connection/v1/async-callback as the Callback URL. /// </summary> /// <exception cref="Trulioo.SDK.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="mode">trial or live</param> /// <param name="transactionStatus">transactionStatus</param> /// <returns>ApiResponse of Object</returns> public Trulioo.SDK.Client.ApiResponse <Object> ConnectionAsyncCallbackUrlWithHttpInfo(string mode, TransactionStatus transactionStatus) { // verify the required parameter 'mode' is set if (mode == null) { throw new Trulioo.SDK.Client.ApiException(400, "Missing required parameter 'mode' when calling ConnectionApi->ConnectionAsyncCallbackUrl"); } // verify the required parameter 'transactionStatus' is set if (transactionStatus == null) { throw new Trulioo.SDK.Client.ApiException(400, "Missing required parameter 'transactionStatus' when calling ConnectionApi->ConnectionAsyncCallbackUrl"); } Trulioo.SDK.Client.RequestOptions localVarRequestOptions = new Trulioo.SDK.Client.RequestOptions(); String[] _contentTypes = new String[] { "application/json", "text/json" }; // to determine the Accept header String[] _accepts = new String[] { "application/json", "text/json" }; var localVarContentType = Trulioo.SDK.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Trulioo.SDK.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("mode", Trulioo.SDK.Client.ClientUtils.ParameterToString(mode)); // path parameter localVarRequestOptions.Data = transactionStatus; // make the HTTP request var localVarResponse = this.Client.Post <Object>("/{mode}/connection/v1/async-callback", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("ConnectionAsyncCallbackUrl", localVarResponse); if (_exception != null) { throw _exception; } } return(localVarResponse); }
/// <summary> /// Test Authentication This method enables you to check if your credentials are valid. You will need to use basic authentication to ensure a successful response. /// </summary> /// <exception cref="Trulioo.SDK.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="mode">trial or live</param> /// <returns>ApiResponse of string</returns> public Trulioo.SDK.Client.ApiResponse <string> TestAuthenticationWithHttpInfo(string mode) { // verify the required parameter 'mode' is set if (mode == null) { throw new Trulioo.SDK.Client.ApiException(400, "Missing required parameter 'mode' when calling ConnectionApi->TestAuthentication"); } Trulioo.SDK.Client.RequestOptions localVarRequestOptions = new Trulioo.SDK.Client.RequestOptions(); String[] _contentTypes = new String[] { }; // to determine the Accept header String[] _accepts = new String[] { "application/json", "text/json" }; var localVarContentType = Trulioo.SDK.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Trulioo.SDK.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("mode", Trulioo.SDK.Client.ClientUtils.ParameterToString(mode)); // path parameter // authentication (ApiKeyAuth) required if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-trulioo-api-key"))) { localVarRequestOptions.HeaderParameters.Add("x-trulioo-api-key", this.Configuration.GetApiKeyWithPrefix("x-trulioo-api-key")); } // make the HTTP request var localVarResponse = this.Client.Get <string>("/{mode}/connection/v1/testauthentication", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("TestAuthentication", localVarResponse); if (_exception != null) { throw _exception; } } return(localVarResponse); }
/// <summary> /// Search Calling this method will perform a business search. /// </summary> /// <exception cref="Trulioo.SDK.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="mode">trial or live</param> /// <param name="businessSearchRequest"></param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse (BusinessSearchResponse)</returns> public async System.Threading.Tasks.Task <Trulioo.SDK.Client.ApiResponse <BusinessSearchResponse> > SearchWithHttpInfoAsync(string mode, BusinessSearchRequest businessSearchRequest, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'mode' is set if (mode == null) { throw new Trulioo.SDK.Client.ApiException(400, "Missing required parameter 'mode' when calling BusinessApi->Search"); } // verify the required parameter 'businessSearchRequest' is set if (businessSearchRequest == null) { throw new Trulioo.SDK.Client.ApiException(400, "Missing required parameter 'businessSearchRequest' when calling BusinessApi->Search"); } Trulioo.SDK.Client.RequestOptions localVarRequestOptions = new Trulioo.SDK.Client.RequestOptions(); String[] _contentTypes = new String[] { "application/json", "text/json" }; // to determine the Accept header String[] _accepts = new String[] { "application/json", "text/json" }; var localVarContentType = Trulioo.SDK.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) { localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); } var localVarAccept = Trulioo.SDK.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) { localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } localVarRequestOptions.PathParameters.Add("mode", Trulioo.SDK.Client.ClientUtils.ParameterToString(mode)); // path parameter localVarRequestOptions.Data = businessSearchRequest; // authentication (ApiKeyAuth) required if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-trulioo-api-key"))) { localVarRequestOptions.HeaderParameters.Add("x-trulioo-api-key", this.Configuration.GetApiKeyWithPrefix("x-trulioo-api-key")); } // make the HTTP request var localVarResponse = await this.AsynchronousClient.PostAsync <BusinessSearchResponse>("/{mode}/business/v1/search", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("Search", localVarResponse); if (_exception != null) { throw _exception; } } return(localVarResponse); }