import.io curl 简单数据集成 [英] import.io curl simple data integration
本文介绍了import.io curl 简单数据集成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想通过 https://import.io 获取简单的 api 集成卷曲.我创建了一个神奇的 api,现在正在努力获取数据.
I want to get the simple api integration from https://import.io via curl. I created a magic api and struggle now to get the data.
我是否在浏览器上使用了神奇的 api,它工作正常.但是使用 curl 我得到一个 {"code":"NOT_AUTHORIZED"}
.显然,身份验证不起作用.
Do I use the magic api on the browser, it works fine. But with curl I get a {"code":"NOT_AUTHORIZED"}
. Obvious that the authentication did not work.
这是我的代码
#!/bin/bash
login=foo@bar.com
pass=foobar
userid=foo-bar
apikey=1f2o3o4b5a6r
curl --user $login:$pass https://api.import.io/store/data/033fbe66-13b7-4cf2-ba9c-58183a567a6f/_query?input/webpage/url=https%3A%2F%2Fwww.zalando.de%2Flp-ons-wom-sale-cat-v1%2F%3Forder%3Dsale&_user=$userid&_apikey=$apikey
我做错了什么?以及如何使用 curl 运行它?
推荐答案
我可以让它运行.找到 https://github.com/import-io/bashtractor/blob/master/bashtractor.sh 解决了我的问题.
I could get it running. Found https://github.com/import-io/bashtractor/blob/master/bashtractor.sh which solved my problem.
这篇关于import.io curl 简单数据集成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文