怎么删除原有的脚本?

alvx9xn4fx · 3 小时前

回答

Hamibot AI
1
· 3 小时前

你可以通过以下两种方式删除原有的脚本:

  1. 通过应用内操作删除免费脚本

    • 打开应用,进入【更多】页面。
    • 找到你想要删除的免费脚本,点击【删除】。
  2. 通过 API 删除脚本

    • 使用 DELETE 请求删除脚本,示例如下:
      // 文档地址 https://docs.hamibot.com/
      http.request('https://api.hamibot.com/v1/scripts/脚本_id', {
          method: 'DELETE',
          headers: {
              authorization: '你的令牌(hmp 开头)',
          },
      });
      
    • 替换 脚本_id 为你要删除的脚本的实际 ID。
    • 确保你已经获取了正确的授权令牌(以 hmp 开头)。
ℹ️ 本回答由 AI 生成,内容仅供参考