@tapd/tapd-node-sdk 1.32.0-beta.5 → 1.32.0-beta.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.js +18 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tapd/tapd-node-sdk",
3
- "version": "1.32.0-beta.5",
3
+ "version": "1.32.0-beta.6",
4
4
  "description": "node sdk for open tapd ",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
package/src/index.js CHANGED
@@ -1566,6 +1566,24 @@ module.exports = class API extends SDK {
1566
1566
  );
1567
1567
  }
1568
1568
 
1569
+ /**
1570
+ * @description 获取单个图片下载链接
1571
+ * @link o.tapd.tencent.com/document/api-doc/API%E6%96%87%E6%A1%A3/api_reference/attachment/get_image.html
1572
+ * @scope attachment#r
1573
+
1574
+ * @params - {integer} workspace_id 项目ID
1575
+ * @params - {string} image_path 图片路径, 支持完整url地址, 图片所属项目必须和传入的项目id一致
1576
+ */
1577
+ getImage(...args) {
1578
+ return this.oAuthRequest.apply(
1579
+ this, [
1580
+ '/files/get_image',
1581
+ 'GET',
1582
+ ...args
1583
+ ]
1584
+ );
1585
+ }
1586
+
1569
1587
  /**
1570
1588
  * @description 复制缺陷
1571
1589
  * @link o.tapd.tencent.com/document/api-doc/API%E6%96%87%E6%A1%A3/api_reference/bug/copy_bug.html