Tag API

Tag GET -wjb.buyer.label.list

description

get all customize tags(only single and multiple selection tag)

input params

ID Name Type Description Required
2 page_no Number page number Y
3 page_size Number page size Y

return result

ID Name Type Description
1 code Number
2 error_message String
3 buyer_labels BuyerLabel[] Member Tag
4 has_next Boolean
{
  "response": {
    "buyer_labels": [
      {
        "label_id": 244527944405,
        "label_name": "jgjgfj",
        "label_type": "checkbox",
        "label_values": [
          "1:jghj",
          "2:iyuiuy"
        ]
      },
      {
        "label_id": 244527944409,
        "label_name": "fengzi",
        "label_type": "checkbox",
        "label_values": [
          "1:fz1",
          "2:fz2"
        ]
      }
    ],
    "code": 0,
    "has_next": true
  }
}

add tag on member -wjb.buyer.label.add

description

member added tag

input params

ID Name Type Description Required
1 buyer_nick Number member nick name Y
2 buyer_labels BuyerLabel[] Tag Y
3 mode Number 1:add, 2:replace Y

Return Result

ID Name Type Description
1 code Number
2 error_message String

delete member tag -wjb.buyer.label.delete

descprition

delete member tag

input params

ID Name Type Description Required
1 buyer_nick Number member nick name Y
2 label_name String tag name,such as skin Y

Return Result

ID Name Type Description
1 code Number -
2 error_message String -

add tag -wjb.label.add

description

only identifying by tag name,add tag if no tag exist,add at most 10 tags if yes.

input params

ID Name Type Description Required
1 buyerLabel BuyerLabel Member Tag Y

Return Result

ID Name Type Description
1 code Number Result Code:0 success ,8001 already ten tag exist and can not add any tag,8002 tag value is null,8003 not new tag value,add failure
2 error_message String Error Message
3 label BuyerLabel Tag Name

add Tag Result:

{
  "response": {
    "code": 0,
    "label": {
      "label_id ": "123456789 ",
      "label_name": "最棒的CRM",
      "label_type": "radio",
      "label_values": [
        "网聚宝crm_1",
        "网聚宝crm_2",
        "网聚宝crm_3",
        "网聚宝crm_4",
        "网聚宝crm_5"
      ]
    }
  }
}