New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ali-cdn-sdk

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ali-cdn-sdk

阿里云 cdn sdk

  • 1.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
23
increased by43.75%
Maintainers
1
Weekly downloads
 
Created
Source

aliyun-sdk

阿里云 CDN API SDK

初始化


const co = require('co');
const SDK = require('ali-cdn-sdk');

const CONFIG = {
  accessKeyId: '在阿里云OSS申请的 accessKeyId',
  appSecret: '在阿里云OSS申请的 secretAccessKey',
  endpoint: 'https://cdn.aliyuncs.com',
  apiVersion: '2014-11-11',
};

co(function* () {
  const sdk = new SDK(CONFIG);
  const res = yield sdk.DescribeDomainHttpCodeData({
    DomainName: 'a.alipayobjects.com',
    StartTime: '',  // 数据格式参考测试用例
    EndTime: '',
  });
  console.log(res);
});

目前支持的 API

请查看 lib/apis.js, 如果有需要,可以提交 MR 新增

链接

  • CDN 接口文档

FAQs

Package last updated on 19 Jun 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