作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在使用 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/
我是一名优秀的程序员,十分优秀!