Total Complexity | 1 |
Complexity/F | 1 |
Lines of Code | 18 |
Function Count | 1 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | |||
5 | |||
6 | const sandcage = new Sandcage('[YOUR SANDCAGE API KEY]'); |
||
7 | const payload = { |
||
8 | files: [ |
||
9 | {'reference_id': '[reference_id]'}, |
||
10 | {'file_token': '[file_token]'} |
||
11 | ] |
||
12 | }; |
||
13 | const callbackUrl = ''; |
||
14 | |||
15 | sandcage |
||
16 | .destroyFiles(payload, callbackUrl) |
||
17 | .then((result) => { |
||
18 | console.log(result); |
||
19 | }); |