POST api/dealer/SyncWxInfo?app_key={app_key}&access_token={access_token}&timestamp={timestamp}&sign={sign}

用户在微信授权登陆后同步微信信息

Request Information

URI Parameters

NameDescriptionTypeAdditional information
app_key

app_key

string

None.

access_token

access_token

string

None.

timestamp

timestamp

string

None.

sign

sign

string

None.

Body Parameters

UserWxInfo
NameDescriptionTypeAdditional information
UnionId

微信的UnionId

string

None.

OpenId

微信的OpenId

string

None.

UserId

用户Id

string

None.

NickName

用户的昵称

string

None.

Sex

用户的性别,值为1时是男性,值为2时是女性,值为0时是未知

integer

None.

City

用户所在城市

string

None.

Country

用户所在国家

string

None.

Province

用户所在省份

string

None.

Headimgurl

用户头像,最后一个数值代表正方形头像大小 (有0、46、64、96、132数值可选,0代表640*640正方形头像), 用户没有头像时该项为空。若用户更换头像,原有头像URL将失效。

string

None.

Request Formats

application/json, text/json

Sample:
{
  "UnionId": "sample string 1",
  "OpenId": "sample string 2",
  "UserId": "sample string 3",
  "NickName": "sample string 4",
  "Sex": 5,
  "City": "sample string 6",
  "Country": "sample string 7",
  "Province": "sample string 8",
  "Headimgurl": "sample string 9"
}

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.