IHttpApiGetTData, TError Method (HttpApiGetRequest) |
Namespace: Casewhere.Runtime.DSL.Api
HttpApiResponse<TData, TError> Get<TData, TError>( HttpApiGetRequest httpApiGetRequest )
var httpApi = @apiFactory.Get<IHttpApi>(); var url = "https://login-demo.casewhere.com/admin/api/rest/v2/sharedconfigurablesettings"; var urlParameters = new Dictionary<string, string>(); urlParameters.Add("sortOrder", "Ascending"); var additionalHeaders = new Dictionary<string, string>(); additionalHeaders.Add("Authorization", "eyJhbGciOiJSUzI1NiIsImtpZCI6..."); var httpResponse = httpApi.Get<JObject, string>(HttpApiRequest.CreateGetRequest(url, urlParameters, additionalHeaders)); Log.Info("Response: {@response}", httpResponse);