ADPAPIClient.HttpClient.getCaseTypes C# (CSharp) Method

getCaseTypes() public method

public getCaseTypes ( ) : string
return string
        public string getCaseTypes()
        {
            return getEndpointResponse("case_types");
        }

Usage Example

        //example of retrieving case type lookup data from API endpoint
        public void instantiateCaseTypes()
        {
            HttpClient client = new HttpClient();
            string json = client.getCaseTypes();

            JArray caseTypeArray = JArray.Parse(json);
            IList<JToken> tokens = caseTypeArray.Children().ToList();

            foreach (JToken token in tokens)
            {
                CaseType caseType = JsonConvert.DeserializeObject<CaseType>(token.ToString());
                caseTypes.Add(caseType);
            }
        }
All Usage Examples Of ADPAPIClient.HttpClient::getCaseTypes