Skip to content

ant-ife/ali-dcdn

Repository files navigation

ali-dcdn

Aliyun DCDN client.

Installation

$ npm install ali-dcdn

Usage

const DCDNClient = require('ali-dcdn');
const client = new DCDNClient({
  accessKeyId: '<Your accessKeyId>',
  accessKeySecret: '<Your accessKeySecret>',
  endpoint: '<DCDN endpoint>', // e.g.: 'DCDN.aliyuncs.com'
});

(async () => {
  const quota = await client.actions.DescribeDcdnUserQuota({ DomainName: 'Your domainName' });
  console.log('user quota: %j', quota);
})().catch(err => console.error(err));

Documentation

Issues

Changelog

Detailed changes for each release are documented in the release notes.

License

MIT