从Instagram API请求访问令牌

时间:2017-09-08 16:22:58

标签: json curl token instagram access

我被告知要把它放在我的Command Promt终端中:

curl -F 'client_id=CLIENT_ID' \
-F 'client_secret=CLIENT_SECRET' \
-F 'grant_type=authorization_code' \
-F 'redirect_uri=AUTHORIZATION_REDIRECT_URI' \
-F 'code=CODE' \
https://api.instagram.com/oauth/access_token

我正在使用Windows,并已安装curl,以便在我的操作系统中使用该命令。但是,我收到了这个错误:

curl: (6) Couldn't resolve host '\'
curl: (6) Couldn't resolve host '\'
curl: (6) Couldn't resolve host '\'
curl: (6) Couldn't resolve host '\'
curl: (6) Couldn't resolve host '\'
{"error_type": "OAuthException", "code": 400, "error_message": "You must 
provide a client_id

我提供了一个client_id,但却告诉我提供它... 我应该在此之后得到一个JSON对象。 我不知道为什么会这样。请帮帮我。

0 个答案:

没有答案