在为某些用户调用我们的 edX 安装的 api/user/v1/accounts 端点时,我得到的信息比其他用户多,但是用户的定义类似。知道什么配置不正确吗?
比较一下,这是预期的:
{
"username": "xapitest",
"bio": null,
"requires_parental_consent": true,
"name": "Xapi Test",
"secondary_email": null,
"country": null,
"social_links": [],
"is_active": true,
"profile_image": {
"image_url_full": "https://online.xxxedx.com/static/images/profiles/default_500.4215dbe8010f.png",
"image_url_large": "https://online.xxxedx.com/static/images/profiles/default_120.4a5e0900098e.png",
"image_url_medium": "https://online.xxxedx.com/static/images/profiles/default_50.3455a6581573.png",
"image_url_small": "https://online.xxxedx.com/static/images/profiles/default_30.deee7287e843.png",
"has_image": false
},
"extended_profile": [],
"year_of_birth": null,
"level_of_education": null,
"accomplishments_shared": false,
"goals": "",
"language_proficiencies": [],
"gender": null,
"account_privacy": "private",
"mailing_address": "",
"email": "xapitest@xxxedx.com",
"date_joined": "2020-04-27T14:49:58Z"
}
这就是我与另一个用户定义的结果:
{
"username": "Rolrox",
"bio": null,
"accomplishments_shared": false,
"country": "HU",
"social_links": [],
"profile_image": {
"image_url_full": "https://online.xxxedx.com/static/images/profiles/default_500.4215dbe8010f.png",
"image_url_large": "https://online.xxxedx.com/static/images/profiles/default_120.4a5e0900098e.png",
"image_url_medium": "https://online.xxxedx.com/static/images/profiles/default_50.3455a6581573.png",
"image_url_small": "https://online.xxxedx.com/static/images/profiles/default_30.deee7287e843.png",
"has_image": false
},
"time_zone": null,
"language_proficiencies": [],
"account_privacy": "all_users",
"date_joined": "2020-04-28T10:25:59Z"
}
后者缺少name
and email
。