Exemplo n.º 1
0
        /// <summary>
        /// This function makes API call to get groups operation
        /// </summary>
        public GroupObj.RootObject getGroups(string groupsName)
        {
            APIRequest apiRequest = new APIRequest("groups??groupName=" + groupsName);

            apiRequest.accept = "application/json";

            if (apiService.get(apiRequest))
            {
                var group = new GroupObj();
                return group.deserializeGroupObj(apiService.apiResponse.getResponseData());
            }

            throw new Exception(apiService.errorResponse);
        }