Applescript +休息?
AppleScript 是否有与 REST API 交互的方式?
我意识到我可以
do shell script curl
Does AppleScript have a way of interacting with REST APIs?
I realize I can
do shell script curl
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您需要帮助来获得正确的curl语句,我会使用curl,
我推荐postman,它确实帮助我生成正确的代码。但请记住,如果您有这些:
"
,请在前面放置转义字符:\"
。例如,如果我想对
AppleScript 执行 POST 请求,则如下所示:
当然,您可以轻松地将结果分配为值:
希望这会有所帮助!
I would use curl in
If you need help to get the correct curl statement I recommend postman, It helps me really to generate the right code. But remember If you have these:
"
to put an escape character in front:\"
.So for example if i want to do a POST request to
the AppleScript would look like this:
And of course you can easy assign the result as a value:
Hope this helps!