/// <summary> /// Verifies the access. /// </summary> /// <param name="route">The route.</param> /// <returns></returns> public VerifyAccessResponse VerifyAccess(string route) { try { return(_apiClient.SendRequest <VerifyAccessResponse>(string.Format("api/tokens/{0}", route), null, Method.GET)); } catch (ServiceNotFoundException) { return(null); } }
/// <summary> /// Verifies the access. /// </summary> /// <param name="route">The route.</param> /// <returns></returns> public VerifyAccessResponse VerifyAccess(string route) { return(_apiClient.SendRequest <VerifyAccessResponse>(string.Format("api/tokens/{0}", route), null, Method.GET)); }
/// <summary> /// Gets the patient. /// </summary> /// <param name="customerId">The customer identifier.</param> /// <param name="patientId">The patient identifier.</param> /// <param name="isBrief">if set to <c>true</c> [is brief].</param> /// <param name="bearerToken">The bearer token.</param> /// <returns></returns> public PatientDto GetPatient(int customerId, Guid patientId, bool isBrief, string bearerToken) { string endpointUrl = string.Format("api/{0}/{1}?isBrief={2}", customerId, patientId, isBrief); return(apiClient.SendRequest <PatientDto>(endpointUrl, null, Method.GET, null, bearerToken)); }
/// <summary> /// Return customer by customer subdomain. /// </summary> /// <param name="customerId">The customer identifier.</param> /// <param name="subdomain">Subdomain of customer site.</param> /// <param name="bearerToken">The bearer token.</param> /// <returns></returns> public CustomerResponseDto GetCustomerBySubdomain(int customerId, string subdomain, string bearerToken) { var requestUrl = string.Format("/api/{0}/customers/subdomain/{1}?isBrief=false", customerId, subdomain); return(_apiClient.SendRequest <CustomerResponseDto>(requestUrl, null, Method.GET, null, bearerToken)); }