我最近注意到,当我通过peopla API访问某些用户时,我没有得到公司名称。
E.g。
我问:/v1/people/~:(id,first-name,last-name,positions:(title,summary,start-date,end-date,company:(id,name)))
我明白了:
{
"firstName": "xxxxx",
"id": "WzdY2z96Tw",
"lastName": "xxxx",
"positions": {
"_total": 12,
"values": [
{
"company": {},
"startDate": {
"month": 4,
"year": 2015
}
},
{
"company": {"id": 1970},
"endDate": {
"month": 11,
"year": 2014
},
"startDate": {
"month": 7,
"year": 2008
}
},
{
"company": {},
"endDate": {
"month": 7,
"year": 2008
},
"startDate": {
"month": 4,
"year": 2006
}
},
{
"company": {"id": 1159270},
"endDate": {
"month": 1,
"year": 2006
},
"startDate": {
"month": 5,
"year": 2004
}
},
{
"company": {"id": 106859},
"endDate": {
"month": 5,
"year": 2004
},
"startDate": {
"month": 1,
"year": 2003
}
},
{
"company": {"id": 106859},
"endDate": {
"month": 1,
"year": 2003
},
"startDate": {
"month": 5,
"year": 2001
}
},
{
"company": {},
"endDate": {
"month": 5,
"year": 2001
},
"startDate": {
"month": 1,
"year": 1999
}
},
{
"company": {},
"endDate": {"year": 1998},
"startDate": {"year": 1995}
},
{
"company": {},
"endDate": {"year": 1995},
"startDate": {"year": 1994}
},
{
"company": {},
"endDate": {"year": 1994},
"startDate": {"year": 1993}
},
{
"company": {},
"endDate": {"year": 1993},
"startDate": {"year": 1991}
},
{
"company": {},
"endDate": {"year": 1991},
"startDate": {"year": 1988}
}
]
}
}
(出于隐私原因,我将名称更改为x'es) 所以,正如你所看到的,我没有得到公司名称。 我确实为其他用户取回了公司名称。
我该怎么办?
答案 0 :(得分:-1)
/v1/people/~:(id,first-name,last-name,positions)
足以检索公司名称。