/// <summary> /// Get all ListItems from SharePoint List /// </summary> /// <param name="webUrl">URL of SharePoint Web which contains the list</param> /// <param name="accessToken">OAuth Access Token to be used as authentication with SharePoint REST API</param> /// <param name="query"></param> /// <returns> /// All List Items /// </returns> public IEnumerable <T> GetAll(string webUrl, string accessToken, string query) { if (!_validator.IsSharePointUrlValid(webUrl) || !_validator.IsAccessTokenValid(accessToken)) { throw _exceptionService.InvalidUrlOrToken(); } return(_service.GetListItems <T>(webUrl, _listName, accessToken, query)); }