youzanyun-sdk-nodejs
Advanced tools
Comparing version 1.8.0 to 1.8.1
@@ -15,4 +15,4 @@ /** | ||
module.exports = { | ||
request: params => httpClient.request(params), | ||
callApi: params => apiClient.callApi(params), | ||
request: (...params) => httpClient.request(...params), | ||
callApi: (...params) => apiClient.callApi(...params), | ||
}; |
{ | ||
"name": "youzanyun-sdk-nodejs", | ||
"version": "1.8.0", | ||
"version": "1.8.1", | ||
"description": "有赞云 nodejs sdk", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
21
test.js
@@ -20,11 +20,16 @@ process.env.OPENSDK_CLIENTID = '434bff5f1b502f9668'; | ||
const call_main_handler = async () => { | ||
const foo = await sdk.callApi({ | ||
api: 'youzan.shop.configs.get', | ||
version: '1.0.0', | ||
params: { | ||
keys: ['is_youzan_secured', 'customer_blacklist_switch'], | ||
const foo = await sdk.callApi( | ||
{ | ||
api: 'youzan.shop.configs.get', | ||
version: '1.0.0', | ||
params: { | ||
keys: ['is_youzan_secured', 'customer_blacklist_switch'], | ||
}, | ||
files: null, | ||
grant_id: 53548965, | ||
}, | ||
files: null, | ||
kdtId: 53548965, | ||
}); | ||
{ | ||
timeout: 2000, | ||
}, | ||
); | ||
@@ -31,0 +36,0 @@ console.log(foo); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14640
473