Beispiel #1
0
        /// <summary>
        /// This function makes API call to get contacts operation
        /// </summary>
        public QuickContactObj.RootObject getContacts(string search)
        {
            APIRequest apiRequest = new APIRequest("contacts?" + "search=" + search);

            apiRequest.accept = "application/json";
            apiRequest.addHeaders("x-fields", "shallow");

            if (apiService.get(apiRequest))
            {
                var contact = new QuickContactObj();
                return(contact.deserializeQuickContactsObj(apiService.apiResponse.getResponseData()));
            }

            throw new Exception(apiService.errorResponse);
        }
Beispiel #2
0
        /// <summary>
        /// This function makes API call to get contacts operation
        /// </summary>
        public QuickContactObj.RootObject getContacts(string search)
        {
            APIRequest apiRequest = new APIRequest("contacts?" + "search=" + search);

            apiRequest.accept = "application/json";
            apiRequest.addHeaders("x-fields", "shallow");

            if (apiService.get(apiRequest))
            {
                var contact = new QuickContactObj();
                return contact.deserializeQuickContactsObj(apiService.apiResponse.getResponseData());
            }

            throw new Exception(apiService.errorResponse);
        }