Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

aliyun-cdi

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aliyun-cdi

阿里云内容检测API

  • 0.1.8
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Aliyun-Cdi npm package NPM downloads Dependency Status

阿里云绿网内容检测API 封装

安装

npm install aliyun-cdi

示例

var request = require('request');
var composeUrl = require('aliyun-cdi');

var url = composeUrl({
  AccessKeyID: 'XXX', // 你申请的AccessKeyID
  AccessKeySecret: 'XXX', // 你申请的AccessKeySecret
  Action: 'ImageDetection', // Action
  Scene: ['porn'], // 场景
  ImageUrl: ['http://dun.163.com/res/sample/sex_2.jpg'] // 资源实例
});

request.post(url, function (err, res, body) {
  if (res.statusCode === 200) {
    console.log(body);
  } else {
    console.log(res.statusCode, err);
  }
});

Keywords

FAQs

Package last updated on 18 Oct 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc