POST api/XmhHr/BindSAP
公众号绑定sap账号
Request Information
URI Parameters
None.
Body Parameters
BindSapDtoName | Description | Type | Additional information |
---|---|---|---|
username |
sap账号 |
string |
None. |
pwd |
密码 |
string |
None. |
openId |
openId/token |
string |
None. |
Request Formats
application/json, text/json
Sample:
{ "username": "sample string 1", "pwd": "sample string 2", "openId": "sample string 3" }
application/xml, text/xml
Sample:
<BindSapDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WXProgramApi.Models.HrWxModels"> <openId>sample string 3</openId> <pwd>sample string 2</pwd> <username>sample string 1</username> </BindSapDto>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
BaseOutName | Description | Type | Additional information |
---|---|---|---|
errcode |
错误编码 2:error 401:鉴权失败;200:成功;500:内部错误; |
ErrCode |
None. |
message |
消息 |
string |
None. |
Response Formats
application/json, text/json
Sample:
{ "errcode": 2, "message": "sample string 1" }
application/xml, text/xml
Sample:
<BaseOut xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WXProgramApi.Models.HrWxModels"> <errcode>Error</errcode> <message>sample string 1</message> </BaseOut>