-
Notifications
You must be signed in to change notification settings - Fork 1
/
test.js
42 lines (42 loc) · 1.51 KB
/
test.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
let { ApigwClient } = require('./dist/index')
// import {xwSKD} from './dist/index'
let requestSDK = new ApigwClient('236514', '3eaf929860ac418d6dcd4de903913787')
// requestSDK.request({
// url: 'https://api.kingdee.com/jdyconnector/app_management/push_app_authorize', method: 'post', params: {
// outerInstanceId: '73951222155055104',
// app_signature: 'MzZlYTk0ODk4MWZlNjdiODNmNWU4YzViNzYxNGM5MTFlOGJkN2NjMzk0MTJkZGNhZGM0NzZhN2YxZDJmOTlkZA=='
// },data: { firstName: 'Fred' }
// }).then(response => {
// console.log(response.status);
// console.log(response.data);
// })
// requestSDK.request({
// url: 'https://api.kingdee.com/jdy/test/get', method: 'get', params: {
// outerInstanceId: '73951222155055104'
// }
// }).then(response => {
// console.log(response.status);
// console.log(response.data.data);
// }).catch(e => {
// console.log(e.response.data)
// })
// requestSDK.request({
// url: 'https://api.kingdee.com/jdy/test/put', method: 'put', params: {
// outerInstanceId: '73951222155055104'
// }
// }).then(response => {
// console.log(response.status);
// console.log(response.data.data);
// }).catch(e => {
// console.log(e.response.data)
// })
requestSDK.request({
url: 'https://api.kingdee.com/jdy/test/delete', method: 'delete', params: {
outerInstanceId: '73951222155055104'
}
}).then(response => {
console.log(response.status);
console.log(response.data.data);
}).catch(e => {
console.log(e.response.data)
})