Пример #1
0
 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);
 }
Пример #2
0
 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);
 }
Пример #3
0
 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);
 }
Пример #4
0
		public async Task<IndividualSectionResponse> CreateSectionAsync(Section section)
		{
			var body = new { section };
			return await GenericPostAsync<IndividualSectionResponse>(string.Format("help_center/sections.json"), body);
		}
Пример #5
0
        public IndividualSectionResponse CreateSection(Section section)
        {
			var body = new { section };
			return GenericPost<IndividualSectionResponse>(string.Format("help_center/sections.json"), body);
        }
Пример #6
0
 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);
 }
Пример #7
0
 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);
 }