Oauth LinkedIn Api:I';“我得到了”;拒绝访问人员搜索。”;

Oauth LinkedIn Api:I';“我得到了”;拒绝访问人员搜索。”;,oauth,linkedin,Oauth,Linkedin,我正在使用LinkedIn Api搜索人员信息 我希望每个用户都能达到极限。 (尽管我只想要公共信息,但似乎必须使用登录的用户令牌发送请求) 因此,我将一些人注册到我的应用程序,以获得更多代币,但当我使用代币时,我得到: “拒绝访问人员搜索。” 原因是什么?没有提供足够的信息来解决问题,但LinkedIn有明确的文档说明。这对我来说从来都不是问题,所以我认为您可能正在进行不必要的API调用。我知道API返回的数据嵌套得很深,您可能不需要进行太多API调用来获取所需的数据。我会将一个API响应打印

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

我希望每个用户都能达到极限。 (尽管我只想要公共信息,但似乎必须使用登录的用户令牌发送请求)

因此,我将一些人注册到我的应用程序,以获得更多代币,但当我使用代币时,我得到: “拒绝访问人员搜索。”


原因是什么?

没有提供足够的信息来解决问题,但LinkedIn有明确的文档说明。这对我来说从来都不是问题,所以我认为您可能正在进行不必要的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作业上运行,每个脚本都使用唯一的开发人员登录