Socket
Book a DemoInstallSign in
Socket

ali-cdn-url

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ali-cdn-url

get ali cdn request url

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

ali-cdn-url Build Status

获取阿里云cdn请求地址 阿里云cdn调用方式

Install

$ npm install ali-cdn-url

usage

const getRequestUrl = require('ali-cdn-url')
const pubArgs = {
    SignatureVersion: '1.0',
    Format: 'JSON',
    Timestamp: '2015-08-06T02:19:46Z',
    AccessKeyId: 'testid',
    SignatureMethod: 'HMAC-SHA1',
    Version: '2014-11-11',
    SignatureNonce: '9b7a44b0-3be1-11e5-8c73-08002700c460',
    AccessKeySecret: 'testsecret'
}

const otherArgs = {
    Action: 'DescribeCdnService'
}

const url = getRequestUrl(pubArgs, otherArgs)
// 得到cdn调用地址

api

.getRequestUrl(pubArgs, otherArgs)

pubArgs

Type: Object

Default: none

调用cdn时的公共参数,包括AccessKeyIdAccessKeySecret当参数

otherArgs

Type: Object

Default: none

调用cdn时不同接口特有的参数,其中Action是必须的

License

MIT © klouskingsley

Keywords

ali

FAQs

Package last updated on 13 Jun 2018

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