gpt4 book ai didi

oauth - 领英 API : I'm getting "Access to people search denied."

转载 作者:行者123 更新时间:2023-12-02 04:59:17 25 4
gpt4 key购买 nike

我正在使用 LinkedIn Api 来搜索人员信息,

我一直在达到每个用户的限制。(尽管我只想要公共(public)信息,但似乎必须使用已登录的用户 token 发送请求)。

所以我在我的应用程序中注册了一些人,以获得更多 token ,但是当我使用这些 token 时,我得到:“访问人员搜索被拒绝。”

可能是什么原因?

最佳答案

没有提供足够的信息来解决问题,但 LinkedIn 在其 throttle limits 上有明确的文档.这对我来说从来都不是问题,所以我认为您可能进行了不必要的 API 调用。我知道 API 返回的数据嵌套非常深,您可能不需要调用那么多 API 来获取所需的数据。我会向终端打印一个 API 响应并检查数据。我使用 Python,通常需要挖掘 3 或 4 个级别才能获得我需要的数据。例如。

updates = app.get_company_updates(COMPANY_ID, params={'count': count, 'event-type': 'status-update',})

update_list = []
for update in updates['values']:
my_dict = {'comment': update['updateContent']['companyStatusUpdate']['share']['comment']}
if update['updateContent']['companyStatusUpdate']['share'].get('content'):
my_dict['description'] = update['updateContent']['companyStatusUpdate']['share']['content'].get('description')
my_dict['submittedImageUrl'] = update['updateContent']['companyStatusUpdate']['share']['content'].get('submittedImageUrl')
my_dict['title'] = update['updateContent']['companyStatusUpdate']['share']['content'].get('title')
my_dict['shortenedUrl'] = update['updateContent']['companyStatusUpdate']['share']['content'].get('shortenedUrl')
update_list.append(my_dict)

但如果您真的需要经常访问 API,那么您可能需要设置一堆脚本以每天在 cron 作业上运行,每个脚本都使用唯一的开发人员登录名。

关于oauth - 领英 API : I'm getting "Access to people search denied.",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18369476/

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