# 一、应用地址

应用地址:http://o.tapd.woa.com/admin/myapps

# 二、创建应用填写相关资料提交

enter image description here

# 三、设置应用权限

enter image description here

# 四、授权项目权限

enter image description here

# 选择需要授权的项目

enter image description here

# 当你是授权的管理员时可以直接同意授权

enter image description here

# 当你需要授权的项目不是管理员时需要将链接复制给对应项目的管理员授权即可

enter image description here

# 五、设置API请求IP限制(如不限制IP可不填)

enter image description here

# 六、使用API账号

# 应用ID和应用秘钥对应的就是API账号和密码

enter image description here

# 获取项目下需求curl 使用 Basic Auth 鉴权调用示例

curl -u '应用ID:应用秘钥' 'https://apiv2.tapd.tencent.com/stories?workspace_id=10104801'

# 注:

# 1.需创建应用才会生成API账号及密码。只使用API接口可不上架应用!

# 2.公司网络安全限制的原因,从 IDC 请求到 OA 会失败。可以参考下面的解决方法:

1,curl -u 'xxxxxx:xx' -H 'Host: apiv2.tapd.woa.com' 'http://9.146.161.37/bugs?workspace_id=xxxx' 2,使用专用域名方式 oss.apiv2.tapd.woa.com: curl -u 'xxxxxx:xx' 'http://oss.apiv2.tapd.woa.com/bugs?workspace_id=xxxx' 123平台或者golang环境,可以这样: golang 配置 apiv2 header: Req.Host="apiv2.tapd.woa.com" 参考:https://www.cnblogs.com/jinsdu/p/5161962.html 查看自己是不是IDC机器:https://iwiki.woa.com/tencent/static/iwiki-editor-pro/dist/preview.html?space=&page=1227785302&id=131410&name=6997554869969258912%281%29.MP4&size=1160018&language=zh

上次更新: 2023-11-24 18:29:38