POST api/DingDingProgram/GetUserID
获取钉钉userid
Request Information
URI Parameters
None.
Body Parameters
GetUserIdRequestName | Description | Type | Additional information |
---|---|---|---|
authCode |
code |
string |
None. |
appName | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "authCode": "sample string 1", "appName": "sample string 2" }
application/xml, text/xml
Sample:
<GetUserIdRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WXProgramApi.Models"> <appName>sample string 2</appName> <authCode>sample string 1</authCode> </GetUserIdRequest>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
DingUserIDName | Description | Type | Additional information |
---|---|---|---|
UserID | string |
None. |
|
msg |
消息 |
string |
None. |
result |
是否成功 |
boolean |
None. |
Response Formats
application/json, text/json
Sample:
{ "UserID": "sample string 1", "msg": "sample string 2", "result": true }
application/xml, text/xml
Sample:
<DingUserID xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WXProgramApi.Models"> <msg xmlns="http://schemas.datacontract.org/2004/07/WXProgramApi">sample string 2</msg> <result xmlns="http://schemas.datacontract.org/2004/07/WXProgramApi">true</result> <UserID>sample string 1</UserID> </DingUserID>