列出文章
list_articlesList articles from a CSDN account. Use scope='published' for public posts (no cookie needed) or scope='all' to include drafts and get draft/publish counts (requires cookie).
Instructions
列出账号的文章。scope="published"(默认)走公开接口、不需要 Cookie,只含已发布文章;scope="all" 走作者后台接口、需要 Cookie,包含草稿,并在 counts 里给出 draft/publish 等分类计数——这是唯一能回答「我有哪些草稿」的口径(公开接口看不到草稿,get_article 又要先知道 id)。注意后台接口的每页条数由 CSDN 服务端固定,page_size 传入后可能被忽略,返回的 pageSize 是实际值。不要用它判断某篇文章是否发布成功——看不到不等于没发布,请用 verify_article。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | ||
| scope | No | ||
| page_size | No |