接口

作者: 倒着游的鱼 | 来源:发表于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'
    

    相关文章

      网友评论

          本文标题:接口

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