public async Task<IndividualSectionResponse> CreateSectionAsync(Section section) { var body = new { section }; return await GenericPostAsync<IndividualSectionResponse>(string.Format("help_center/categories/{0}/sections.json?include=access_policies", section.CategoryId), body); }
public async Task<IndividualSectionResponse> UpdateSectionAsync(Section section) { var body = new { section }; return await GenericPutAsync<IndividualSectionResponse>(string.Format("help_center/sections/{0}.json?include=access_policies", section.Id), body); }
public IndividualSectionResponse UpdateSection(Section section) { var body = new { section }; return GenericPut<IndividualSectionResponse>(string.Format("help_center/sections/{0}.json?include=access_policies", section.Id), body); }
public async Task<IndividualSectionResponse> CreateSectionAsync(Section section) { var body = new { section }; return await GenericPostAsync<IndividualSectionResponse>(string.Format("help_center/sections.json"), body); }
public IndividualSectionResponse CreateSection(Section section) { var body = new { section }; return GenericPost<IndividualSectionResponse>(string.Format("help_center/sections.json"), body); }
public async Task<IndividualAccessPolicyResponse> UpdateSectionAccessPolicyAsync(Section section) { var body = new { access_policy = section.AccessPolicy }; return await GenericPutAsync<IndividualAccessPolicyResponse>(string.Format("/api/v2/help_center/sections/{0}/access_policy.json", section.Id), body); }
public IndividualAccessPolicyResponse UpdateSectionAccessPolicy(Section section) { var body = new { access_policy = section.AccessPolicy }; return GenericPut<IndividualAccessPolicyResponse>(string.Format("/api/v2/help_center/sections/{0}/access_policy.json", section.Id), body); }