【发布时间】:2017-09-06 16:31:58
【问题描述】:
我是 API 集成的新手,所以我需要一些帮助来连接和测试端点。谁能帮我在 CURL 中转换这个 HTTP 帖子?或任何不同的方式用它在 python 或 js 中编写程序。
POST URL:
https://api.hubapi.com/oauth/v1/token
Headers:
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Data:
grant_type=authorization_code&client_id=xxxxxxxx-xxxx-xxxx-xxxx-
xxxxxxxxxxxx&client_secret=yyyyyyyy-yyyy-yyyy-yyyy-
yyyyyyyyyyyy&redirect_uri=http://www.hubspot.com/&code=zzzzzzzz-zzzz-
zzzz-zzzz-zzzzzzzzzzzz
【问题讨论】:
标签: javascript python curl post http-post