# getIotBindContactList(Object req)

This interface is asynchronous and returns Promise Object.

according to OpenId, a query specifying whether the user has authorized a device.

# parameter

# Object req

attribute type Default value Required Introductions
sn string yes equipment SN
model_id string yes Equipment model_id
Openid _list string[] yes The user to query openId list

# Return value

# Object

attribute type Introductions
Errcode number Error code
errmsg string Error message
contact_list Info[] Openid Authorization information, status: 1 Is authorized, 0 Indicates unauthorized

# sample code

const wmpfVoip = requirePlugin('wmpf-voip' ).default

wmpfVoip
  .getIotBindContactList({
    sn: 'device sn ',
    model_id: 'modelid of application ',
    Openid _list: [Openid _1', Openid _2'], // Pass in the list of openids that need to be verified
  })
  .then(res => {
    console.log(`[getIotBindContactList]:`, res.contact_list)
    // [{sn: 'xxx',  model_id: 'xxx',  status: 0}]
    // status: 0/Not authorized1/Authorized
  })