inBloomApiLibrary.SectionDataService.GetSectionTeacherAssociationTeacherListAsync C# (CSharp) Method

GetSectionTeacherAssociationTeacherListAsync() public method

Gets teachers in teacher section associations within the sections.
public GetSectionTeacherAssociationTeacherListAsync ( string accessToken, string sectionId, int limit, int offset ) : Task
accessToken string
sectionId string
limit int Max number of sections to return(optional)
offset int Starting position of result set(optional)
return Task
        public async Task<JArray> GetSectionTeacherAssociationTeacherListAsync(string accessToken, string sectionId, int? limit, int? offset)
        {
            Uri apiEndPoint = new Uri(String.Format(ApiHelper.BaseUrl + "/sections/{0}/teacherSectionAssociations/teachers", 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));
        }