# Custom user parameter management interface

This interface supports Twitter for a single WeChat open platform account (the main body should be consistent with Twitter account) under the specific unionid binding custom user parameters, bound users through the alliance to promote the material order, through theQuery order detail interfaceCan query the user corresponding to the custom user parameters.

Interface Name Introductions
Binding open platform account Support Twitter account binding open platform
Get an open account Support tweets get bound open platform account
binding/Custom user parameters Support Tweeters to bind custom parameters for specific unionid
Remove custom user parameters Support for tweeters to delete custom parameters for a specific union id
Get custom user parameters Support for tweets querying custom parameters for specific unionid

# I. Binding open platform account

# Interface Dxplaination

Support Twitter account binding open platform Note: The binding open platform account and push guest account should be the same body, the open platform accounts can be changed twice a year.

# Request address

POST https://api.weixin.qq.com/union/promoter/open_account/bind?access_token=ACCESS_TOKEN

# Request parameters

attribute type Default values Required Introductions
access_token string yes Interface calling credential
openAccount string yes Open platform account

# POST Data example

{
  "openAccount": "APPID"
}

# Return value

# Object

attribute type Introductions
Errcode number Error code
errmsg string Error message
{
    "errcode": 0,
    "errmsg": "ok",
}

# Error code

value Introductions
200002/25510 Parameter error
25503 Failed to get principal information
25504 Principal validation failed
25505 open Account does not exist
25506 open Account exception
25507 open Account exception
25508 Validation failure
25509 The number of custom parameters for binding exceeded

# Second, access to open platform account

# Interface Dxplaination

Support push guest get bound open platform account

# Request address

GET https://api.weixin.qq.com/union/promoter/open_account/get?access_token=ACCESS_TOKEN

# Request parameters

attribute type Default values Required Introductions
access_token string yes Interface calling credential

# Return value

# Object

attribute type Introductions
Errcode number Error code
errmsg string Error message
openAccount string Open platform account
{
    "errcode": 0,
    "errmsg": "ok",
    "openAccount": "APPID"
}

# III. Binding/Custom Parameters for Changing Ties

# Interface Dxplaination

Support Tweeters to bind custom parameters for specific unionid Note: A unionid can bind only one custom parameter at the same time, repeated binding will take the latest value

# Request address

POST https://api.weixin.qq.com/union/promoter/open_account/add_customize_info?access_token=ACCESS_TOKEN

# Request parameters

attribute type Default values Required Introductions
access_token string yes Interface calling credential
unionid string yes Open Platform unionid
customizeInfo string yes Custom parameters

# POST Data example

{
  "unionid": "UNIONID",
  "customizeInfo": "customizeInfo"
}

# Return value

# Object

attribute type Introductions
Errcode number Error code
errmsg string Error message
{
    "errcode": 0,
    "errmsg": "ok",
}

# Error code

value Introductions
200002/25510 Parameter error
25503 Failed to get principal information
25504 Principal validation failed
25505 open Account does not exist
25506 open Account exception
25507 open Account exception
25508 Validation failure
25509 The number of custom parameters for binding exceeded

# Delete custom parameters

# Interface Dxplaination

Support for tweeters to delete bound custom parameters for a specific union id

# Request address

POST https://api.weixin.qq.com/union/promoter/open_account/of the_customize_info?access_token=ACCESS_TOKEN

# Request parameters

attribute type Default values Required Introductions
access_token string yes Interface calling credential
unionid string yes Open Platform unionid

# POST Data example

{
  "unionid": "UNIONID"
}

# Return value

# Object

attribute type Introductions
Errcode number Error code
errmsg string Error message
{
    "errcode": 0,
    "errmsg": "ok",
}

# Error code

value Introductions
200002/25510 Parameter error
25503 Failed to get principal information
25504 Principal validation failed
25505 open Account does not exist
25506 open Account exception
25507 open Account exception
25508 Validation failure
25509 The number of custom parameters for binding exceeded

# Get custom parameters

# Interface Dxplaination

Support for Tweeters to get bound custom parameters for a specific union id

# Request address

GET https://api.weixin.qq.com/union/promoter/open_account/get_customize_info?access_token=ACCESS_TOKEN

# Request parameters

attribute type Default values Required Introductions
access_token string yes Interface calling credential
unionid string yes Open Platform unionid

# Return value

# Object

attribute type Introductions
Errcode number Error code
errmsg string Error message
customizeInfo string Custom parameters
{
    "errcode": 0,
    "errmsg": "ok",
    "customizeInfo": "customizeInfo"
}

# Error code

value Introductions
200002/25510 Parameter error
25503 Failed to get principal information
25504 Principal validation failed
25505 open Account does not exist
25506 open Account exception
25507 open Account exception
25508 Validation failure
25509 The number of custom parameters for binding exceeded