curl -F 是什么意思?php instagram [英] curl -F what does it mean? php instagram

查看:45
本文介绍了curl -F 是什么意思?php instagram的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想弄清楚这是什么意思?我希望能够向 Instagram 的 API 发布一些内容,但不确定 curl -F 是什么意思?我尝试在谷歌上搜索它,但它没有给我太多.也许有这件事的人可以发光?

I'm trying to figure out what this means? I want to be able to post something to Instagram's API, but not sure what curl -F means? I tried searching it on google, but it's not giving me much. Maybe someone with this matter can shine some light?

另外,使用这种方法发布到 Instagram 的最佳方式是什么?文档要求

Also, What is the best way to post to Instagram with this method? The documentation is asking

curl -F 'access_token=ACCESS-TOKEN' \
    https://api.instagram.com/v1/media/{media-id}/likes

有人可以向我解释一下吗?

Can someone explain this to me?

提前致谢!

推荐答案

curl 是一个模拟 Web 请求的 Linux 实用程序.发出 curl -F 命令发出带有表单提交数据的 http 请求.在这种情况下,表单数据是数据 access_token=ACCESS-TOKEN 并且它被发布到 url https://api.instagram.com/v1/media/{media-id}/喜欢

curl is a linux utility that simulates web requests. Issuing a curl -F command issues a http request with form submission data. In this case, the form data is the data access_token=ACCESS-TOKEN and it is being issued to the url https://api.instagram.com/v1/media/{media-id}/likes

有关 cURL 是什么及其作用的更多信息,请访问 http://curl.haxx.se/docs/manpage.html

Further information on what cURL is and what it does can be found at http://curl.haxx.se/docs/manpage.html

这篇关于curl -F 是什么意思?php instagram的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆