linkedin公司api为没有徽标的公司抛出错误代码500

时间:2018-04-05 06:11:52

标签: linkedin linkedin-api

在获取用户的公司列表时,它会为没有徽标的公司抛出500个错误代码。

使用logo-url param查询:

  

卷曲   " https://api.linkedin.com/v1/companies:(id,name,universal-name,website-url,industries,status,blog-rss-url,logo-url,twitter-id,employee-count-range,specialties,locations,description,stock-exchange,founded-year,end-year,num-followers)?is-company-admin=true&format=json&count=1&start=2&oauth2_access_token=XXXX

     

{" errorCode":0," message":"内部API服务器错误",
  " requestId":" xyz"," status":500," timestamp":1522908224279}

没有logo-url param的查询:

  

卷曲   " https://api.linkedin.com/v1/companies:(id,name,universal-name,website-url,industries,status,blog-rss-url,twitter-id,employee-count-range,specialties,locations,description,stock-exchange,founded-year,end-year,num-followers)?is-company-admin=true&format=json&count=1&start=2&oauth2_access_token=XXXX

     

{" _count":1," _start":2," _total":8," values":[{       " id":123456,       " name":" Cross Talk",       " numFollowers":0,       " universalName":" cross-talk" }]}

有人可以帮忙解决这个问题吗?

1 个答案:

答案 0 :(得分:0)

我发现这是来自LinkedIn的一个问题。如果请求的公司没有徽标,则会发生这种情况。我尝试添加新徽标,API在请求中使用logo-url