import.io卷曲简单的数据集成 [英] import.io curl simple data integration
本文介绍了import.io卷曲简单的数据集成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想获得的简单的API集成通过从 https://import.io 的卷曲。我创建了一个神奇的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的浏览器,它工作正常。但随着卷曲我收到了 {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.
下面是我的code
#!/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
我在做什么错了?我如何得到它的卷曲?运行
推荐答案
我可以让它运行。发现 https://github.com/import-io/bashtractor/blob/主/它解决我的问题bashtractor.sh 。
I could get it running. Found https://github.com/import-io/bashtractor/blob/master/bashtractor.sh which solved my problem.
这篇关于import.io卷曲简单的数据集成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文