开源中国 API
  1. 博客
开源中国 API
  • OSCHINA 开放平台Beta
  • 认证接口
    • oauth2_authorize
      GET
    • oauth2_token
      POST
  • 个人信息
    • openapi_user
      POST
    • user_information
      POST
    • my_information
      POST
    • portrait_update
      POST
    • friends_list
      POST
    • active_list
      POST
    • update_user_relation
      POST
  • 新闻
    • news_list
      POST
    • /action/openapi/news_detail
      POST
  • 帖子
    • post_list
      POST
    • post_pub
      POST
    • post_detail
      POST
  • 动弹
    • tweet_list
      POST
    • tweet_detail
      POST
    • tweet_pub
      POST
    • tweet_delete
      POST
  • 博客
    • blog_pub
      POST
    • blog_list
      POST
    • blog_recommend_list
      POST
    • blog_detail
      POST
    • user_blog_list
      POST
    • blog_catalog_list
      POST
  • 评论
    • blog_comment_list
    • blog_comment_pub
    • blog_comment_reply
    • user_blog_delete
    • comment_list
    • comment_pub
    • comment_reply
    • comment_delete
  • 收藏
    • favorite_list
    • favorite_add
    • favorite_remove
  • 软件
    • project_detail
    • project_catalog_list
    • project_list
    • project_tag_list
  • 私信
    • message_list
    • message_delete
  • 搜索
    • search_list
  • 通知
    • user_notice
    • clear_notice
  1. 博客

user_blog_list

POST
/action/openapi/user_blog_list
获取用户博客列表
是否需要登录
否
访问授权限制
暂无
授权范围(scope)
访问博客信息
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://www.oschina.net/action/openapi/user_blog_list' \
--header 'Content-Type: application/json' \
--data-raw '{
    "access_token": "string",
    "authoruid": 0,
    "authorname": "string",
    "page/pageIndex": 0,
    "pageSize": 0,
    "dataType": "string"
}'
响应示例响应示例
{
  "count": 111,
  "notice": {
    "replyCount": 0,
    "msgCount": 0,
    "fansCount": 0,
    "referCount": 0
  },
  "bloglist": [
    {
      "id": 49090,
      "pubDate": "2012-03-13 23:01:52.0",
      "author": "whxia320",
      "title": "mongodb for java使用中的小问题",
      "authorid": 100399,
      "type": 1,
      "commentCount": 7
    }
  ]
}

请求参数

Body 参数application/json
access_token
string 
可选
oauth2_token获取的access_token 当提供的access_token和authoruid是同一用户则显示私有博客
authoruid
integer 
可选
用户ID(authoruid authorname任选一种)
authorname
string 
可选
用户Ident(authoruid authorname任选一种)
page/pageIndex
integer 
页数
必需
pageSize
integer 
每页条数
必需
dataType
string 
必需
返回数据类型['json'|'jsonp'|'xml']
示例

返回响应

🟢200成功
application/json
Body
count
integer 
博客总数
必需
notice
object 
必需
replyCount
integer 
必需
msgCount
integer 
必需
fansCount
integer 
必需
referCount
integer 
必需
bloglist
array [object {7}] 
必需
id
integer 
博客id
可选
pubDate
string 
发布日期
可选
author
string 
投递者名称
可选
title
string 
博客标题
可选
authorid
integer 
投递者编号
可选
type
integer 
1-原创 4-转载
可选
commentCount
integer 
评论数
可选
修改于 2022-08-22 05:43:39
上一页
blog_detail
下一页
blog_catalog_list
Built with