inBloomApiLibrary.SectionDataService.GetSectionStudentAssociationsAsync C# (CSharp) Method

GetSectionStudentAssociationsAsync() public method

Gets Student section associations details within the sections.
public GetSectionStudentAssociationsAsync ( string accessToken, string sectionId, int limit, int offset ) : Task
accessToken string
sectionId string
limit int
offset int
return Task
        public async Task<JArray> GetSectionStudentAssociationsAsync(string accessToken, string sectionId, int? limit, int? offset)
        {
            Uri apiEndPoint = new Uri(String.Format(ApiHelper.BaseUrl + "/sections/{0}/studentSectionAssociations", sectionId));
            if (limit != null) { apiEndPoint = apiEndPoint.AddQuery("limit", limit.ToString()); }
            if (offset != null) { apiEndPoint = apiEndPoint.AddQuery("offset", offset.ToString()); }
            return (await ApiHelper.CallApiForGetAsync(apiEndPoint.ToString(), accessToken));
        }