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 | 'use strict'; |
||
6 | |||
7 | const Sandcage = require('..'); |
||
8 | |||
9 | const sandcage = new Sandcage('[YOUR SANDCAGE API KEY]'); |
||
10 | const payload = { |
||
11 | files: [ |
||
12 | {'reference_id': '[reference_id]'}, |
||
13 | {'file_token': '[file_token]'} |
||
14 | ] |
||
15 | }; |
||
16 | const callbackUrl = ''; |
||
17 | |||
18 | sandcage |
||
19 | .destroyFiles(payload, callbackUrl) |
||
20 | .then((result) => { |
||
21 | console.log(result); |
||
|
|||
22 | }); |