APP API

2013年7月7日 由 Creater 留言 »

通过用户名请求用户信息

/api/members/show.json?username=creater
{
    "status" : "found",
    "id" : 124227,
    "url" : "http://www.v2ex.com/member/creater",
    "username" : "creater",
    "website" : "unix8.net",
    "twitter" : "",
    "psn" : "",
    "github" : "",
    "btc" : "",
    "location" : "",
    "tagline" : "",
    "bio" : "",
    "avatar_mini" : "//cdn.v2ex.co/gravatar/66103e121af7a4496eff575016a1e294?s=24&d=retro",
    "avatar_normal" : "//cdn.v2ex.co/gravatar/66103e121af7a4496eff575016a1e294?s=48&d=retro",
    "avatar_large" : "//cdn.v2ex.co/gravatar/66103e121af7a4496eff575016a1e294?s=73&d=retro",
    "created" : 1435286217
}

通过用户名请求

/topics/show.json?username=creater
[{
    
    "id" : 204050,
    "title" : "如何找领导办一件私事?",
    "url" : "http://www.v2ex.com/t/204050",
    "content" : "该怎么开口呢?",
    "content_rendered" : "\u003Cp\u003E该怎么开口呢?\u003C/p\u003E\u000A",
    "replies" : 3,
    "member" : {
        "id" : 124227,
        "username" : "creater",
        "tagline" : "",
        "avatar_mini" : "//cdn.v2ex.co/gravatar/66103e121af7a4496eff575016a1e294?s=24&d=retro",
        "avatar_normal" : "//cdn.v2ex.co/gravatar/66103e121af7a4496eff575016a1e294?s=48&d=retro",
        "avatar_large" : "//cdn.v2ex.co/gravatar/66103e121af7a4496eff575016a1e294?s=73&d=retro"
    },
    "node" : {
        "id" : 12,
        "name" : "qna",
        "title" : "问与答",
        "url" : "http://www.v2ex.com/go/qna",
        "topics" : 52413,
        "avatar_mini" : "//cdn.v2ex.co/navatar/c20a/d4d7/12_mini.png?m=1434537173",
        "avatar_normal" : "//cdn.v2ex.co/navatar/c20a/d4d7/12_normal.png?m=1434537173",
        "avatar_large" : "//cdn.v2ex.co/navatar/c20a/d4d7/12_large.png?m=1434537173"
    },
    "created" : 1436276707,
    "last_modified" : 1436276707,
    "last_touched" : 1436279480
    
}]
广告位

发表评论

你必须 登陆 方可发表评论.