inBloomApiLibrary.SectionDataService.GetSectionCustomAsync C# (CSharp) Method

GetSectionCustomAsync() public method

Gets section custom details asyncronously.
public GetSectionCustomAsync ( 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> GetSectionCustomAsync(string accessToken, string sectionId, int? limit, int? offset)
        {
            Uri apiEndPoint = new Uri(String.Format(ApiHelper.BaseUrl + "/sections/{0}/custom", 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));
        }