# wx.getShareInfo(Object object)

Start from base library version 1.1.0. Please remaining backward compatible.

with Promise style call: Not supported

Need page permissions: Mini Programs cannot call this interface from a plugin page, and plugins cannot call the interface from the plugins page

Mini Program plugin: Support, need to Mini Program base library version no less than 2.1.0

When used in Mini Programs plug-ins, can only be called from the page of the current plug-in

Get forwarding details

# parameter

# Object object

attribute type Default values Required Introductions Minimum version
shareTicket string yes shareTicket
timeout number no Timeout, units ms 1.9.90
success function no Interface calls the successful callback function
fail function no Interface calls failed callback functions
complete function no Callback function at the end of an interface call (both successful and unsuccessful calls are executed)

# object.success callback

# parameter
# Object object
attribute type Introductions Minimum version
errMsg string Error message
encryptedData string Encrypted data for complete forwarding information including sensitive data, seeEncryption data decryption algorithm
iv string The initial vector of the encryption algorithm, seeEncryption data decryption algorithm
cloudID string Cloud of sensitive data ID, OpenCloud DevelopmentThe Mini Program will return, can directly access open data through the cloud call, seeDirect access to open data for cloud calls 2.7.0

# sample code

Sensitive data acquisition methods Encryption data decryption algorithm 。 Get the open data as follows json Structure in which openGId Unique identification for the current group):

{
 "openGId": "OPENGID"
}

# Tips