[关闭]
@fuyb1986 2016-03-30T09:24:44.000000Z 字数 1618 阅读 570

获取某个达人的详细信息

好热闹

获取某个达人的详细信息

Description

获取某个达人的详细信息,包括达人访问和达人详细介绍

Method and URL Structure

Method Resource URL
GET /forum/expert_get_info_skills/

Request Parameters

Name Description Required Default
expert 达人用户名 Yes
username 用户名 No
password 密码 NO/[YES,如果指定了用户名]

Request

  1. {
  2. "expert":"expert_username",
  3. "username":"username",
  4. "password":"password",
  5. }

cURL Example

  1. curl -d username=12345678910&password=123456&expert=10987654321 http://localhost/forum/expert_get_info_skills/

JSON Response

Name Description
ret 标识是否成功 ok, 成功; failed, 失败
reason 失败原因,比如:身份验证失败
expert 达人
  1. 达人的用户信息
Name Description
username 达人的用户名
nickname 用户昵称
followed 用户是否 Followed
user_desc 用户简介
is_public_number 是否公众号
thumb 用户头像

2. skills: 达人的技能集合

Name Description
skill_id 技能 ID
skill 技能名称
price 技能价格
categroy 技能分类
name 技能分类的名称
id 技能分类的 ID

3. expert_info: 达人信息

Name Description
profile 达人详细介绍
sex 性别
slogan slogan
thumb 达人大图
short_desc 达人简介
order_count 订单总数
is_new 是否新申请达人
order_count 订单总数
done_order_count 完成回答的订单数
order_statistics 回答率
interviews 达人的访问
customzation 自定义页面信息

interviews: 达人访问

Name Description
title 访问标题
content 访问内容
interview_time 访问时间
  1. {
  2. "ret":"ok",
  3. "reason":"",
  4. "expert":{
  5. "username": "12345678910",
  6. "nickname": "昵称",
  7. "user_desc": "",
  8. "thumb":"http://resource.haorenao.cn/static/tea/threadimages/thumb.png",
  9. "is_public_number": false,
  10. "skills": [{
  11. "skill": "技能名称",
  12. "skill_id": 100,
  13. "price": 2.0,
  14. "category": {"name": "分类", "id": 1}
  15. }, ...
  16. "expert_info": {
  17. "sex": "男/女",
  18. "slogan": "SLOGAN",
  19. "thumb": "http://resource.haorenao.cn/static/tea/threadimages/thumb.jpg",
  20. "short_desc": ".....",
  21. "is_new": false,
  22. "order_count": 0,
  23. "done_order_count": 0,
  24. "order_statistics": 0,
  25. "customzation":"<html></html>",
  26. "interviews":[{
  27. "title":"interview title",
  28. "content":"interview content",
  29. "interview_time":"intervirew tie",
  30. }...],
  31. },
  32. }
  33. }
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注