Skip to main content

Learning

Learning 相关接口通常用于:

  • 收藏/更新单词(learned word)
  • 查询用户已学词汇列表

示例:收藏单词

curl -X POST {BASE_URL}/api/v1/learning/collect-word \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
-d '{
"spec": {
"term": "apple",
"language": "LANGUAGE_ENGLISH",
"mastery_level": 0,
"tags": ["fruit"]
}
}'

示例:查询列表(带过滤)

curl {BASE_URL}/api/v1/learning/learned-words \
-H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
-G \
--data-urlencode 'page_size=20' \
--data-urlencode 'filter=language == \"LANGUAGE_ENGLISH\"'