【问题标题】:LinkedIn Api: I'm getting "Access to people search denied."LinkedIn Api:我收到“拒绝访问人员搜索”。
【发布时间】:2014-08-22 11:15:41
【问题描述】:

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

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

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

可能是什么原因?

【问题讨论】:

    标签: oauth linkedin


    【解决方案1】:

    没有提供足够的信息来解决问题,但 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 作业上运行,每个脚本使用唯一的开发人员登录名。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-06-21
      • 2017-03-16
      • 2020-09-04
      • 1970-01-01
      • 2022-12-15
      相关资源
      最近更新 更多