Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

运行脚本的API怎么调用? #762

Open
TouccRooney opened this issue Apr 7, 2024 · 0 comments
Open

运行脚本的API怎么调用? #762

TouccRooney opened this issue Apr 7, 2024 · 0 comments

Comments

@TouccRooney
Copy link

我用IOS快捷指令获取URL内容,参数都是按照这个输入的,提示参数有误code1010,其他的获取脚本列表,新建脚本都能用,就是这个运行脚本用不起来,我觉得应该是请求体这里写错了,但不知道怎么改。
这个 -d 表示的不是一个词典内容吗?
curl
-X POST
-H "Authorization: 你的令牌(hmp 开头)"
-H "Content-Type: application/json"
-d '{"robots": [{"_id": "a51d237e9af41ecc021c9ff6", "name": "零号机"}]}'
[https://api.hamibot.com/v1/devscripts/开发脚本id/run

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant