my.MQFetchSelfcareParameters

Provides mini program JavaScript API to obtain parameter information related to selfcare.


Sample Code

copy
my.call('MQFetchSelfcareParameters',{
}).then((values)=>{
  my.alert({
    content:JSON.stringify(values)
  });
}).catch((value)=>{
  my.alert({
    title:'faile',
    content:JSON.stringify(value)
  });
})


Parameters
No Requirement


Success Callback Function

Name

Type

Required

Description

success

bool

M

Whether the JSAPI call is successful

code

number

M

0: success
-1 : fail

message

String

O

error message

result

Object

O

response result parameters

device_id

String

M

device id params

user_agent

String

M

user agent params

session_id

String

M

session id params,Obtained from the server-side interface (requesting micro API)

Demo Response

copy
{
        success: true, 
        code: 0,
        result:{
            device_id: "4314136637684986643546",
            user_agent: "test",
            session_id: "3156532622235625537"
        }
}

若有收获,就点个赞吧