2013-08-21 61 views
3

我使用LinkedIn Api来搜索人员信息,LinkedIn Api:我得到了“拒绝访问人员搜索”。

我保持每个用户的限制。 (尽管我只想公开信息,但似乎必须使用已登录的用户令牌发送请求)。

所以我注册了一些人对我的应用程序,以获得更多的令牌,但是当我使用的令牌,我得到:“人们访问搜索被拒绝”

可能是什么原因?

回答

0

没有足够的信息来解决这个问题,但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) 

但如果你真的需要打很多,那么你可能要设置很多脚本,对一个cron作业每天采用了独特的开发人员登录每个脚本运行的API。

相关问题