gpt4 book ai didi

api - curl LinkedIn API

转载 作者:行者123 更新时间:2023-12-02 00:23:37 25 4
gpt4 key购买 nike

我通过 Python 获得了 LinkedIn API 的 oauth token 和 oauth token key 。我现在想通过 curl 进行一些 REST 调用,我尝试了以下操作;

curl -v "http://api.linkedin.com/v1/people/~" -d "oauth_token=xxxxxxxxxx" -d "oauth_token_secret=xxxxxxxxxxxxx"

我在 Python 中使用了 LinkedIn API,但想在 curl 中使用。我在这里错过了什么吗?
在这方面的任何建议将不胜感激。
感谢您的帮助。

最佳答案

您需要使用 OAuth 对请求进行签名 - 通常这样做的最佳方法是使用库(就像您提到的,python 库运行良好)。您可以抓取 HTTP 流量以查看正在发送的其他 header 。开发者门户 http://developer.linkedin.com有 OAuth 内容的概述,但是要获得 Curl 的工作实现非常困难,因为您生成的每个签名都会不同(基于时间戳)。

关于api - curl LinkedIn API,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9866606/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com