MCPcopy Create free account
hub / github.com/aliyun/openapi-core-nodejs-sdk / _buildParams

Method _buildParams

lib/rpc.js:262–276  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

260 }
261
262 _buildParams() {
263 const defaultParams = {
264 Format: 'JSON',
265 SignatureMethod: 'HMAC-SHA1',
266 SignatureNonce: kitx.makeNonce(),
267 SignatureVersion: '1.0',
268 Timestamp: timestamp(),
269 AccessKeyId: this.accessKeyId,
270 Version: this.apiVersion,
271 };
272 if (this.securityToken) {
273 defaultParams.SecurityToken = this.securityToken;
274 }
275 return defaultParams;
276 }
277}
278
279module.exports = RPCClient;

Callers 1

rpc.test.jsFile · 0.80

Calls 1

timestampFunction · 0.85

Tested by

no test coverage detected