inBloomApiLibrary.SectionDataService.GetSectionByIdAsync C# (CSharp) Method

GetSectionByIdAsync() public method

Gets section details by id.
public GetSectionByIdAsync ( string accessToken, string sectionId, int limit, int offset ) : Task
accessToken string Access token has to send
sectionId string User id has to send
limit int
offset int
return Task
        public async Task<JArray> GetSectionByIdAsync(string accessToken, string sectionId, int? limit, int? offset)
        {
            Uri apiEndPoint = new Uri(String.Format(ApiHelper.BaseUrl + "/sections/{0}", 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));
        }