Skip to content

Sharer Sets Device Share Information

Interface Address:/v2/binding/enduserapi/shareInfo

Request Method:POST

Request Data Type:application/json

Response Data Type:*/*

Interface Description:Sharer Sets Device Share Information

Request Parameters:

Parameter NameParameter DescriptionRequest TypeRequiredData Typeschema
acceptingExpireAtShare QR code seed expiration timestamp (milliseconds), indicating that the share will expire if not used within this timestampquerytrueinteger(int64)
dkDevice Keyquerytruestring
pkProduct Keyquerytruestring
authKeyAuthKeyqueryfalsestring
coverMarkOverride flag
1 Directly override previous valid share (default) (override existing share code)
2 Directly add, allow multiple coexisting shares
3 Only allow override if share time has been extended
queryfalseinteger(int32)
sharingExpireAtDevice usage expiration timestamp (milliseconds), representing how long the shared device can be used by the recipient
If not provided, it is valid for life, only revoked when the authorizer actively unbinds
queryfalseinteger(int64)

Response Status:

Status CodeDescriptionschema
200Sharer successfully set device share informationRegistration code response data«string»
5032Token verification failed
5066Please enter Product Key
5067Please enter Device Key
5106Please enter token
5132Please enter share QR code seed expiration time
5133Override flag parameter value out of range
5134Failed to add device share information
5135No permission to share this device
5145Timestamp format incorrect
5153Device usage expiration time must be greater than share QR code seed expiration time
5360Cannot share unverified bound device

Response Parameters:

Parameter NameParameter DescriptionTypeschema
codeResponse status codeinteger(int32)integer(int32)
dataResponse datastring
extMsgExtended messagestring
msgResponse messagestring

Response Example:

javascript
{
	"code": 0,
	"data": "",
	"extMsg": "",
	"msg": ""
}