内容 项目比较久远,在使用以前的阿里云SDK进行内容审核时候,发现用不了,所以需要去阿里云官网调整使用最新增强版的SDK (1)文本内容审核 详细的代码示例,可以登录网页看,如图(步骤:1.导包 2.复制代码 3.改一改accessKey, secrectKey, endpoint即可输入内容一键运行) 这里对主要代码进行调整即可: 完整代码如下: @Getter @Setter @Component @ConfigurationProperties(prefix = "aliyun") public class GreenTextScan { private String accessKeyId; private String secret; public Map greeTextScan(String content) throws Exception { System.out.println(accessKeyId); Config config = new Config(); config.setAccessKeyId(accessKeyId);...
Is this you? As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.
Claim your profile
Get in touch with return
Contact return, search articles and posts on X, monitor coverage, and track replies from one place.
Learn more about Muck Rack