Bes_Open_API_English
  1. Leads
Bes_Open_API_English
  • Development guideline
    • BesChannels Product Overview
    • Log Update
  • Authentication
    • openapi-Get token
      POST
  • Leads
    • Get Leads List
      POST
    • Get Leads Details
      POST
    • Leads Create/Add
      POST
    • Leads Edit
      POST
    • Leads Delete
      POST
    • Get List of Remark
      POST
    • Add Remarks
      GET
    • Leads Assignment
      POST
    • Get Leads Activities & Attributes
      POST
    • Get Leads Behaviors
      POST
  • Contents
    • Get Content List
      POST
  • Events
    • Get Events List
      POST
  • Table Structure
    • Application acquiry
      POST
    • Table Structure List
      POST
    • Table Structure Details
      POST
  • Behaviors-NEW
    • Add Application
      POST
    • Add Activities
      GET
    • Get Activities
      POST
    • Get Activities Attributes
      POST
    • Add Activities Attributes
      POST
    • Add Users Behaviors
      POST
  • Others
    • Error code
  1. Leads

Get Leads Behaviors

POST
/leads/open-api/leads-behavior-list
线索行为
Get leads behaviors information

Request

Query Params
access_token
string 
required
Example:
{{access_token}}
Body Params multipart/form-data
user_id
string 
required
admin user_id(get & copy from personal settings)
Example:
{{stg_user_id}}
leads_id
integer 
optional
lead id
mobile
string 
optional
lead mobilephone
email
string 
optional
lead email
start_time
string 
optional
start time(format 2023-04-23),start from 0 o'clock everyday
end_time
string 
optional
end time(format 2023-04-25)end up with 23:59:59 everyday
page_num
integer 
optional
Example:
1
page_size
number 
optional
Example:
20
behavior_sort
string 
optional
desc=倒序,asc=正序,默认为倒序
behavior_json
string 
optional
select based on applications' activities and attributes, data will be acquired by leads activities and attributes types. E.g.:[{"id":"5--18","attribute_name":"page_view"},{"id":"29--26","attribute_name":"watch_meeting"},{"id":"9--25","attribute_name":"watch_meeting"}]

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request POST 'https://openapi.beschannels.com/leads/open-api/leads-behavior-list?access_token=uURA1lnYsBr22I6UYoLZH0s9y3HU2Xsn7UHA4dIDgHPYHwZqTpWJr_GwfBokKNQZfF7rWgukJmjo_Jg9cNfN_4VO2lJpkhHOoOS9RA_MVi-x4nyJolWKNq3l8KhslWxk' \
--form 'user_id="{{stg_user_id}}"' \
--form 'leads_id=""' \
--form 'mobile=""' \
--form 'email=""' \
--form 'start_time=""' \
--form 'end_time=""' \
--form 'page_num="1"' \
--form 'page_size="20"' \
--form 'behavior_sort=""' \
--form 'behavior_json=""'

Responses

🟢200success
application/json
Body
code
integer 
required
msg
string 
required
data
object 
required
list
array [object {4}] 
required
total
integer 
总数
required
Example
{
    "code": 0,
    "msg": "成功",
    "data": {
        "list": [
            {
                "label": "观看回放",
                "content": [
                    "会议名称「测试CC视频」",
                    "会议形式「线上」",
                    "会议分类「传统制造,新能源」",
                    "客户端「手机端」"
                ],
                "create_time": "2023-02-24 14:19:15",
                "type": "SCRM",
                "key": 0
            },
            {
                "label": "观看回放",
                "content": [
                    "会议名称「测试CC视频」",
                    "会议形式「线上」",
                    "会议分类「传统制造,新能源」",
                    "客户端「手机端」"
                ],
                "create_time": "2023-02-24 14:19:13",
                "type": "SCRM",
                "key": 1
            },
            {
                "label": "观看直播",
                "content": [
                    "会议名称「测试CC视频」",
                    "会议形式「线上」",
                    "会议分类「传统制造,新能源」",
                    "客户端「手机端」"
                ],
                "create_time": "2023-02-24 14:03:43",
                "type": "SCRM",
                "key": 2
            },
            {
                "label": "资料浏览",
                "content": [
                    "资料名称「wcy-测试资料事件触发」",
                    "资料状态「上架」",
                    "来源「一级来源:测试」「二级来源:测试01」",
                    "渠道「默认渠道」",
                    "客户端「手机端」",
                    "身份「会员」"
                ],
                "create_time": "2023-02-21 15:21:35",
                "type": "SCRM",
                "key": 3
            }
        ],
        "total": 4
    }
}
Modified at 2023-06-08 06:00:06
Previous
Get Leads Activities & Attributes
Next
Get Content List
Built with