Alipay+ Super App PlatformAlipay+ Super App Platform

my.ASAPLogError

Use the ASAPLogError API to collect error or exception-type events.

Request parameters

Name

Type

Description

Required

eventName

String

Event name

Yes

businessCode

String

Distinguishes between different instances

Yes

bizType

String

Business type, default useĀ businessCode

No

param

Object

Parameters for logging events

No

Response parameters

N/A

Exception

Error code

Error message

2

  • Log businessCode was not found.
  • Log eventName was not found.
  • SpaceCode was not found in param | params.
  • Param | Params was not found.

1300

No instance was found for businessCode.

Sample

.js

copy
my.call('ASAPLogError',{
    eventName: "click1",
    businessCode:"ASAP",
    bizType: "ASAP",
    param: {
      contentId: "contentIdDummy",
      extras:{
      }
  },
  success:(res) => {},
  fail:(error) => {},
  complete:() => {}
})

Sample

MiniProgram

copy
my.call('ASAPLogError',{
    eventName: "click1",
    businessCode:"ASAP",
    bizType: "ASAP",
    param: {
      contentId: "contentIdDummy",
      extras:{
      }
  },
  success:(res) => {},
  fail:(error) => {},
  complete:() => {}
})

H5

copy
AlipayJSBridge.call('ASAPLogError',{'eventName':'click1','businessCode':"ASAP",'bizType': "bizTypeCode",'param': {
  'contentId': "contentIdDummy",
  'extras':{
    'extras1': "extras1Dummy", 
    'AAAAAA': "AAAAAA"
  }
}},function(data){alert(JSON.stringify(data))})