()
| 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 | |
| 279 | module.exports = RPCClient; |