/* * Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ namespace TencentCloud.Tbm.V20180129 { using Newtonsoft.Json; using System.Threading.Tasks; using TencentCloud.Common; using TencentCloud.Common.Profile; using TencentCloud.Tbm.V20180129.Models; public class TbmClient : AbstractClient{ private const string endpoint = "tbm.tencentcloudapi.com"; private const string version = "2018-01-29"; /// /// Client constructor. /// /// Credentials. /// Region name, such as "ap-guangzhou". public TbmClient(Credential credential, string region) : this(credential, region, new ClientProfile()) { } /// /// Client Constructor. /// /// Credentials. /// Region name, such as "ap-guangzhou". /// Client profiles. public TbmClient(Credential credential, string region, ClientProfile profile) : base(endpoint, version, credential, region, profile) { } /// /// 通过分析用户在评价品牌时用词的正负面情绪评分,返回品牌好评与差评评价条数,按天输出结果。 /// /// /// public async Task DescribeBrandCommentCount(DescribeBrandCommentCountRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribeBrandCommentCount"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 通过分析用户在评价品牌时用词的正负面情绪评分,返回品牌好评与差评评价条数,按天输出结果。 /// /// /// public DescribeBrandCommentCountResponse DescribeBrandCommentCountSync(DescribeBrandCommentCountRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribeBrandCommentCount"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 监测品牌关键词命中文章标题或全文的文章篇数,按天输出数据。 /// /// /// public async Task DescribeBrandExposure(DescribeBrandExposureRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribeBrandExposure"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 监测品牌关键词命中文章标题或全文的文章篇数,按天输出数据。 /// /// /// public DescribeBrandExposureResponse DescribeBrandExposureSync(DescribeBrandExposureRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribeBrandExposure"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 监测品牌关键词出现在媒体网站(新闻媒体、网络门户、政府网站、微信公众号、天天快报等)发布资讯标题和正文中的报道数。按天输出结果。 /// /// /// public async Task DescribeBrandMediaReport(DescribeBrandMediaReportRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribeBrandMediaReport"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 监测品牌关键词出现在媒体网站(新闻媒体、网络门户、政府网站、微信公众号、天天快报等)发布资讯标题和正文中的报道数。按天输出结果。 /// /// /// public DescribeBrandMediaReportResponse DescribeBrandMediaReportSync(DescribeBrandMediaReportRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribeBrandMediaReport"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 通过分析用户在评价品牌时用词的正负面情绪评分,返回品牌热门差评观点列表。 /// /// /// public async Task DescribeBrandNegComments(DescribeBrandNegCommentsRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribeBrandNegComments"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 通过分析用户在评价品牌时用词的正负面情绪评分,返回品牌热门差评观点列表。 /// /// /// public DescribeBrandNegCommentsResponse DescribeBrandNegCommentsSync(DescribeBrandNegCommentsRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribeBrandNegComments"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 通过分析用户在评价品牌时用词的正负面情绪评分,返回品牌热门好评观点列表。 /// /// /// public async Task DescribeBrandPosComments(DescribeBrandPosCommentsRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribeBrandPosComments"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 通过分析用户在评价品牌时用词的正负面情绪评分,返回品牌热门好评观点列表。 /// /// /// public DescribeBrandPosCommentsResponse DescribeBrandPosCommentsSync(DescribeBrandPosCommentsRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribeBrandPosComments"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 检测品牌关键词出现在微博、QQ兴趣部落、论坛、博客等个人公开贡献资讯中的内容,每天聚合近30天热度最高的观点列表。 /// /// /// public async Task DescribeBrandSocialOpinion(DescribeBrandSocialOpinionRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribeBrandSocialOpinion"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 检测品牌关键词出现在微博、QQ兴趣部落、论坛、博客等个人公开贡献资讯中的内容,每天聚合近30天热度最高的观点列表。 /// /// /// public DescribeBrandSocialOpinionResponse DescribeBrandSocialOpinionSync(DescribeBrandSocialOpinionRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribeBrandSocialOpinion"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 监测品牌关键词出现在微博、QQ兴趣部落、论坛、博客等个人公开贡献资讯中的条数。按天输出数据结果。 /// /// /// public async Task DescribeBrandSocialReport(DescribeBrandSocialReportRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribeBrandSocialReport"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 监测品牌关键词出现在微博、QQ兴趣部落、论坛、博客等个人公开贡献资讯中的条数。按天输出数据结果。 /// /// /// public DescribeBrandSocialReportResponse DescribeBrandSocialReportSync(DescribeBrandSocialReportRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribeBrandSocialReport"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 根据客户定制的行业关键词,监测关键词出现在媒体网站(新闻媒体、网络门户、政府网站、微信公众号、天天快报等)发布资讯标题和正文中的报道数,以及文章列表、来源渠道、作者、发布时间等。 /// /// /// public async Task DescribeIndustryNews(DescribeIndustryNewsRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribeIndustryNews"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 根据客户定制的行业关键词,监测关键词出现在媒体网站(新闻媒体、网络门户、政府网站、微信公众号、天天快报等)发布资讯标题和正文中的报道数,以及文章列表、来源渠道、作者、发布时间等。 /// /// /// public DescribeIndustryNewsResponse DescribeIndustryNewsSync(DescribeIndustryNewsRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribeIndustryNews"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 通过分析洞察参与过品牌媒体互动的用户,比如公开发表品牌的新闻评论、在公开社交渠道发表过对品牌的评价观点等用户,返回用户的画像属性分布,例如性别、年龄、地域、喜爱的明星、喜爱的影视。 /// /// /// public async Task DescribeUserPortrait(DescribeUserPortraitRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribeUserPortrait"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 通过分析洞察参与过品牌媒体互动的用户,比如公开发表品牌的新闻评论、在公开社交渠道发表过对品牌的评价观点等用户,返回用户的画像属性分布,例如性别、年龄、地域、喜爱的明星、喜爱的影视。 /// /// /// public DescribeUserPortraitResponse DescribeUserPortraitSync(DescribeUserPortraitRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribeUserPortrait"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } } }