Bes_Open_API_English
  1. Behaviors-NEW
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. Behaviors-NEW

Add Users Behaviors

POST
/leads/open-api/save-user-behavior
Add user behavior through user identity information. Identity information includes mobile phone number, email address, and anonymous identification. Behavior information includes applications, behavior events, and behavior event attributes. For example, Xiao Ming's mobile phone number is 15212341234, and he signed up for a event named "Annual Product Launch".

Request

Query Params
access_token
string 
optional
Example:
添加用户行为
Body Params application/json
associated_properties
string 
联人属性
required
beschannels系统用户属性(目前只支持传值mobile,email)
associated_properties_value
string 
关联人属性值
required
beschannels系统用户属性值(目前只支持传值手机号,邮箱)
behavior_name
string 
事件名称
required
occurrence_time
string 
行为发生时间
required
envent_other
array [object {2}] 
其他事假属性
optional
envent_attr_name
string 
事件属性上报名称
optional
envent_attr_value
string 
事件属性值
optional
utm_campaign
string 
推广活动
optional
view_duration
integer 
浏览时长
optional
秒
utm_medium
string 
推广媒介
optional
utm_term
string 
推广关键字
optional
utm_content
string 
推广内容
optional
utm_source
string 
推广来源
optional
behavior_entity_name
string 
实体名称
optional
behavior_goal
string 
实体id
optional
Example
{
    "AssociatedProperties": "mobile",
    "AssociatedPropertiesValue": "18600624960",
    "Source": "another",
    "BehaviorEnventName": "email_other",
    "OccurrenceTime": "2021-04-18 01:31:37",
    "EnventOther": [
        {
            "EnventAttrName": "ces1",
            "EnventAttrValue": "1"
        },
        {
            "EnventAttrName": "ces_baoming",
            "EnventAttrValue": "2"
        },
        {
            "EnventAttrName": "ces_baoming1",
            "EnventAttrValue": "3"
        }
    ],
    "UtmCampaign": "reprehenderit ad esse ut",
    "BehaviorEntityName": "",
    "ViewDuration": 67,
    "UtmMedium": "aliquip exercitation nulla",
    "UtmTerm": "culpa voluptate",
    "UtmContent": "laborum ea magna dolore cillum",
    "BehaviorGoal": "",
    "UtmSource": "incididunt"
}

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 --request POST 'https://openapi.beschannels.com/leads/open-api/save-user-behavior?access_token=添加用户行为' \
--header 'Content-Type: application/json' \
--data-raw '{
    "AssociatedProperties": "mobile",
    "AssociatedPropertiesValue": "18600624960",
    "Source": "another",
    "BehaviorEnventName": "email_other",
    "OccurrenceTime": "2021-04-18 01:31:37",
    "EnventOther": [
        {
            "EnventAttrName": "ces1",
            "EnventAttrValue": "1"
        },
        {
            "EnventAttrName": "ces_baoming",
            "EnventAttrValue": "2"
        },
        {
            "EnventAttrName": "ces_baoming1",
            "EnventAttrValue": "3"
        }
    ],
    "UtmCampaign": "reprehenderit ad esse ut",
    "BehaviorEntityName": "",
    "ViewDuration": 67,
    "UtmMedium": "aliquip exercitation nulla",
    "UtmTerm": "culpa voluptate",
    "UtmContent": "laborum ea magna dolore cillum",
    "BehaviorGoal": "",
    "UtmSource": "incididunt"
}'

Responses

🟢200success
application/json
Body
object {0}
Example
{}
🟢200成功
Modified at 2023-06-07 11:23:29
Previous
Add Activities Attributes
Next
Error code
Built with