コード例 #1
0
ファイル: Categories.cs プロジェクト: jmsalvo/ZendeskApi_v2
        public IndividualCategoryResponse CreateCategory(Category category)
        {
            if (string.IsNullOrEmpty(category.Locale))
                category.Locale = Locale;
            var body = new { category };

            return GenericPost<IndividualCategoryResponse>("help_center/categories.json", body);
        }
コード例 #2
0
ファイル: Categories.cs プロジェクト: jmsalvo/ZendeskApi_v2
 public async Task<IndividualCategoryResponse> UpdateCategoryAsync(Category category)
 {
     var body = new { category };
     return await GenericPutAsync<IndividualCategoryResponse>(string.Format("help_center/categories/{0}.json", category.Id), body);
 }
コード例 #3
0
ファイル: Categories.cs プロジェクト: jmsalvo/ZendeskApi_v2
 public async Task<IndividualCategoryResponse> CreateCategoryAsync(Category category)
 {
     var body = new { category };
     return await GenericPostAsync<IndividualCategoryResponse>(string.Format("help_center/categories.json"), body);
 }
コード例 #4
0
ファイル: Categories.cs プロジェクト: jmsalvo/ZendeskApi_v2
 public IndividualCategoryResponse UpdateCategory(Category category)
 {
     var body = new { category };
     return GenericPut<IndividualCategoryResponse>(string.Format("help_center/categories/{0}.json", category.Id), body);
 }