In April 2024, Quick Audience updated the API 3.0 for event reporting. In 3.0 to the content in API 2.0, Quick Audience also supports multi-entity events and can flexibly grant permissions to call apps.
This operation is based on the Quick Audience Open Platform API. Before you use, follow the instructions in this document to complete the debugging of Quick Audience open platform API. For more information about the procedure and requirements, see Quick Audience Open Platform API.
Only the SDK for Java is provided.
Event data reporting interface
Usage notes | Real-time event synchronization | |||
URL | /openapi/cloud/event/detail/receive | |||
Request method | post | |||
Parameter | Data Type Edition | Data type | Required | Description |
1.accessId | string | body form-data | Yes | Organization ID /Tenant ID. Example value: 8f3554 ba-a242-4436-8354-90672bfc76ea. |
2.eventMessageModelListJson | string | Yes | See the Event Model ClientEventMessageModel below for details. | |
Status code | Description | |||
200 | The API request is successful. | |||
Others | Failed request | |||
Return Property Name | Item | Migration description | ||
1.traceId | string | The unique ID of the request, which is used to locate the problem on the link. | ||
2.success | boolean | Whether the server processing is successful. | ||
3.errorCode | string | The error code. | ||
4.errorDesc | string | The error message. | ||
5.data | string | true/false | ||
Example | ||||
Request parameters | | |||
Return values | { "data": true, "errorCode": null, "errorDesc": null, "success": true, "traceId": "ff0f996e-6c63-412d-a4cd-acf5d00775cd" } | |||
Event Model ClientEventMessageModel
@Data
public class ClientEventMessageModel {
/**
* Organization ID, required.
*/
String organizationId;
/**
* The ID of the space. This parameter is optional.
*/
String workspaceId;
/**
* The user ID of the user in your own system. This parameter is required.
*/
String customerId;
/**
* If the entity ID is a human entity, this parameter is optional.
Required if it is another entity (such as a car entity)
*/
String entityId;
/**
* The event code. This field is required.
*/
String eventCode;
/**
* The time when the event occurred. This field is required.
*/
Long eventTime;
/**
* The event property. Whether this parameter is required depends on the setting of the property in the event definition.
*/
Map<String, String> extendAttributes = new HashMap<>();
/**
* The user ID supported by Quick Audience. If the same customerId has been reported before, this parameter is optional.
*/
List<CustomerIdModel> customerIdList = new ArrayList<>();
/**
* Whether it is transaction data, 0 (not) / 1 (yes)
*/
String isOrder;
}
@Data
public class CustomerIdModel {
String customerId;
String idMapping;
public CustomerIdModel() {
}
public CustomerIdModel(String customerId, String idMapping) {
this.customerId = customerId;
this.idMapping = idMapping;
}
}How to obtain entityId: Configuration Management-Entity Management API Open the console to view query?_=xxxx API to view entityCode

CustomerIdModel:
public class CustomerIdModel {
@ ApiModelProperty(required = true, value = "Actual user ID, such as 139****0000")
String customerId;
@ ApiModelProperty(required = true, value = "User ID type, such as mobile phone number, see the following description of user ID type")
String idMapping;
}User ID type description:
Quick Audience supports all user ID types that are enabled on the ID Type Management page of the workspace. You must use the ID type code as the ID type name in the code.
The ID type code of the preset system ID. For more information, see Preset System ID List.
The ID type code of the custom ID. To view the ID type code, click Edit in the Actions column corresponding to the custom ID.