接口

作者: 倒着游的鱼 | 来源:发表于2020-02-03 11:19 被阅读0次

推荐博主接口
url:
/foll/app/blogger/

参数:

{
 "method": "recommend_blogger"(推荐博主)"
blogger_id:博主id
}

返回:

{
  "status" : 1,
  "data" : {
    "recommend_text" : "低调 和其他 267404 位用户关注了",
    "blogger_users" : [
      {
        "is_follow" : false,
        "id" : 98,
        "user_followed" : "1 亿+关注者",
        "user_nick" : "C罗",
        "user_id" : "cristiano",
        "user_biography" : "",
        "profile_pic" : "http:\/\/aliyun-res.foll.net\/c3b1b21fcad5e48655c0acff3a4ebb9e.jpeg"
      },
      {
        "is_follow" : false,
        "id" : 78,
        "user_followed" : "1 亿+关注者",
        "user_nick" : "爱莉安娜·格兰德",
        "user_id" : "arianagrande",
        "user_biography" : "thank u, next",
        "profile_pic" : "http:\/\/aliyun-res.foll.net\/51d6d23b1b93c3069a790f6ada98f993.jpeg"
      },
      {
        "is_follow" : false,
        "id" : 61,
        "user_followed" : "1 亿+关注者",
        "user_nick" : "塞琳娜",
        "user_id" : "selenagomez",
        "user_biography" : "Light, space, zest -that’s God. With him on my side I’m FEARLESS, afraid of no one and nothing. A21 global anti human trafficking organization A21.org",
        "profile_pic" : "http:\/\/aliyun-res.foll.net\/1b607193cc9b0e6f9ca173e4fd0b040e.jpeg"
      },
      {
        "is_follow" : false,
        "id" : 1241,
        "user_followed" : "1 亿+关注者",
        "user_nick" : "道恩·强森",
        "user_id" : "therock",
        "user_biography" : "mana. gratitude. tequila 🥃",
        "profile_pic" : "http:\/\/aliyun-res.foll.net\/dca377b4840bfdbc898c38bf0151e5fe.jpeg"
      },
      {
        "is_follow" : false,
        "id" : 1240,
        "user_followed" : "1 亿+关注者",
        "user_nick" : "梅西",
        "user_id" : "leomessi",
        "user_biography" : "Bienvenidos a la cuenta oficial de Instagram de Leo Messi \/ Welcome to the official Leo Messi Instagram account",
        "profile_pic" : "http:\/\/aliyun-res.foll.net\/be4f3dca6fde0e0285b99903b07a3fe7.jpeg"
      },
      {
        "is_follow" : false,
        "id" : 100,
        "user_followed" : "1 亿+关注者",
        "user_nick" : "内马尔",
        "user_id" : "neymarjr",
        "user_biography" : "I love Football ❤️⚽️",
        "profile_pic" : "http:\/\/aliyun-res.foll.net\/cd835a433eebaf194ea798d0ca56623f.jpeg"
      },
      {
        "is_follow" : false,
        "id" : 56,
        "user_followed" : "1 亿+关注者",
        "user_nick" : "泰勒",
        "user_id" : "taylorswift",
        "user_biography" : "Support the Equality Act",
        "profile_pic" : "http:\/\/aliyun-res.foll.net\/173c9ffe772445ea22ad275dd8d94cce.jpeg"
      },
      {
        "is_follow" : false,
        "id" : 91,
        "user_followed" : "1 亿+关注者",
        "user_nick" : "贾斯汀比伯",
        "user_id" : "justinbieber",
        "user_biography" : "@drewhouse",
        "profile_pic" : "http:\/\/aliyun-res.foll.net\/5dd5a2ca01dcfe1d12d0fb52abac5403.jpeg"
      },
      {
        "is_follow" : false,
        "id" : 1243,
        "user_followed" : "7485 万+关注者",
        "user_nick" : "巴塞罗那足球俱乐部",
        "user_id" : "fcbarcelona",
        "user_biography" : "🔵🔴 More than a Club. Més que un Club\nWe ❤️ #BarçaFans\n🙌 #ForçaBarça\n🏟 #CampNou",
        "profile_pic" : "http:\/\/aliyun-res.foll.net\/60faa4611bf195addf0d13efb7a5c7dd.jpeg"
      },
      {
        "is_follow" : false,
        "id" : 1244,
        "user_followed" : "5897 万+关注者",
        "user_nick" : "德雷克",
        "user_id" : "champagnepapi",
        "user_biography" : "",
        "profile_pic" : "http:\/\/aliyun-res.foll.net\/e9197130137c324c9c477954b7dfd781.jpeg"
      },
      {
        "is_follow" : false,
        "id" : 93,
        "user_followed" : "5698 万+关注者",
        "user_nick" : "贝克汉姆",
        "user_id" : "davidbeckham",
        "user_biography" : "",
        "profile_pic" : "http:\/\/aliyun-res.foll.net\/66cde71b0f4fb10657a1699aebbe1d0c.jpeg"
      },
      {
        "is_follow" : false,
        "id" : 1265,
        "user_followed" : "5640 万+关注者",
        "user_nick" : "范·迪塞尔",
        "user_id" : "vindiesel",
        "user_biography" : "",
        "profile_pic" : "http:\/\/aliyun-res.foll.net\/50265d50fb19242a8aa5e8269be507e1.jpeg"
      },
      {
        "is_follow" : false,
        "id" : 104,
        "user_followed" : "5580 万+关注者",
        "user_nick" : "贾老板",
        "user_id" : "justintimberlake",
        "user_biography" : "",
        "profile_pic" : "http:\/\/aliyun-res.foll.net\/62a8314b67f44315bdf154d3f40d72e9.jpeg"
      },
      {
        "is_follow" : false,
        "id" : 124,
        "user_followed" : "5481 万+关注者",
        "user_nick" : "詹姆斯",
        "user_id" : "kingjames",
        "user_biography" : "",
        "profile_pic" : "http:\/\/aliyun-res.foll.net\/844e35e1e6e07a017b349fbbf4742677.jpeg"
      },
      {
        "is_follow" : false,
        "id" : 1491,
        "user_followed" : "5114 万+关注者",
        "user_nick" : "Shawn Mendes",
        "user_id" : "shawnmendes",
        "user_biography" : "",
        "profile_pic" : "http:\/\/aliyun-res.foll.net\/4168e5b8ed9df5efefefee3eb5dccf0f.jpeg"
      }
    ]
  },
  "msg" : "success",
  "error_code" : 0
}


单个关注博主与批量关注博主接口
/foll/app/follow/

参数字典

{  "method": "add"(增加关注博主)"  add_list"(批量关注)"    
     "id": 博主id  
      "id_list":"[1,2,3,4]",(method 为 add_list 出现)}

返回数据

{
    'status': 1,
    'msg': 'success',
    'error_code': 0,
    'data': []
}

接口出现错误码

10001:  参数错误    'parameter error' 
20001:  业务流程错误  'business error'
30001:  签名错误.   'signature error'
40001:  需要登录    login required'

相关文章

  • 接口接口接口

    发现很多朋友对于接口都很纠结,阐述一下个人对接口的理解。 接口分为很多种类型,程序语言内部接口 移动端和服务端接口...

  • Android常用接口

    不知名接口 头条接口: 科技接口: 财经接口: 军事接口: 体育接口: 房产接口: 足球接口: 娱乐接口: 电影接...

  • 第十八天 微信微博天气接口

    分享接口 微信接口 微博接口 天气接口 mob接口

  • 接口测试概述

    接口(interface)的概念 常见接口名词 接口测试: 接口测试目的: 接口测试的重要性: 接口测试流程 接口...

  • 接口测试

    接口测试概念: 接口:接口是为了提供一种服务 所有的接口统称为API,接口分为内部接口和外部接口 外部接口:测试被...

  • 接口

    接口 接口类型 空接口 接口嵌套 接口断言 type关键字

  • 线程池原理

    Callable 接口 Runnable 接口 Future接口 RunnableFuture 接口 Future...

  • JMeter-一个接口的返回值作为输入传给其他接口

    背景: 在用JMeter写接口case,遇到一种情况,接口1查看列表接口,接口2查看详情接口,接口2需要传入接口1...

  • 用户操作接口

    登陆 接口地址 获取列表 接口地址 删除 接口地址 批量删除 接口地址 编辑用户 接口地址 添加用户 接口地址

  • JAVA中的集合框架 List (二)

    Collection接口List接口简介 Collection接口、子接口及其实现类,Collection接口是j...

网友评论

      本文标题:接口

      本文链接:https://www.haomeiwen.com/subject/qgqhxhtx.html