【问题标题】:How to create instagram API subscription using cURL如何使用 cURL 创建 Instagram API 订阅
【发布时间】:2014-03-18 22:33:21
【问题描述】:

按照 instagram API 文档,我在命令行中运行了以下命令:

$ curl -F 'client_id=my_client_id' \
> -F 'client_secret=my_client_secret' \
> -F 'object-geography' \
> -F 'aspect=media' \
> -F 'lat=35.657872' \
> -F 'lng=139.70232' \
> -F 'radius=1000' \
> -F 'callback_url=http://http://requestb.in/my_string' \
> https://api.instagram.com/v1/subscriptions/

并得到以下错误:

Warning: Illegally formatted input field!
curl: option -F: is badly used here
curl: try 'curl --help' or 'curl --manual' for more information

我确实尝试过 curl --help 和 curl --manual,但无法根据它们的内容来解决这个问题。如何成功创建订阅?

【问题讨论】:

    标签: api curl instagram


    【解决方案1】:

    你遇到了这个问题:

    > -F 'object-geography' \
    

    应该是Key=Value 成对参数。但是您只使用一个。所以检查一下。大概是这样的

    > -F 'object=geography' \
                ^ check this
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2023-03-03
      • 2015-11-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-01-06
      • 1970-01-01
      • 2016-12-02
      相关资源
      最近更新 更多