内部通讯录回调通知

下列接口中 notify_url 代表开发者配置的回调服务 url

新增成员事件(create_user)

请求方式:POST(HTTPS
请求地址:https://notify_url?msg_signature=3a7b08bb8e6dbce3c9671d6fdb69d15066227608&timestamp=1403610513&nonce=380320359

请求包体:

    <xml>
        <SuiteId><![CDATA[ww4asffe99exxx0f4c]]></SuiteId>
        <AuthCorpId><![CDATA[wxf8b4f85f3a794e77]]></AuthCorpId>
        <InfoType><![CDATA[change_contact]]></InfoType>
        <TimeStamp>1403610513</TimeStamp>
        <ChangeType><![CDATA[create_user]]></ChangeType>
        <UserID><![CDATA[zhangsan]]></UserID>
    </xml>

参数说明:

参数 说明
SuiteId 第三方应用的SuiteId
AuthCorpId 授权方的CorpId
InfoType 固定为change_contact
TimeStamp 时间戳
ChangeType 固定为create_user
UserID 成员UserID

响应返回: "success" 字符串

更新成员事件(update_user)

请求方式:POST(HTTPS
请求地址:https://notify_url?msg_signature=3a7b08bb8e6dbce3c9671d6fdb69d15066227608&timestamp=1403610513&nonce=380320359

请求包体:

    <xml>
        <SuiteId><![CDATA[ww4asffe99exxx0f4c]]></SuiteId>
        <AuthCorpId><![CDATA[wxf8b4f85f3a794e77]]></AuthCorpId>
        <InfoType><![CDATA[change_contact]]></InfoType>
        <TimeStamp>1403610513</TimeStamp>
        <ChangeType><![CDATA[update_user]]></ChangeType>
        <UserID><![CDATA[zhangsan]]></UserID>
        <NewUserID><![CDATA[zhangsan001]]></NewUserID>
    </xml>

参数说明:

参数 说明
SuiteId 第三方应用的SuiteId
AuthCorpId 授权方的corpid
InfoType 固定为change_contact
TimeStamp 时间戳
ChangeType 固定为update_user
UserID 成员UserID
NewUserID 新的UserID,变更时推送(userid由系统生成时可更改一次)

响应返回: "success" 字符串

删除成员事件(delete_user)

请求方式:POST(HTTPS
请求地址:https://notify_url?msg_signature=3a7b08bb8e6dbce3c9671d6fdb69d15066227608&timestamp=1403610513&nonce=380320359

请求包体:

    <xml>
        <SuiteId><![CDATA[ww4asffe99exxx0f4c]]></SuiteId>
        <AuthCorpId><![CDATA[wxf8b4f85f3a794e77]]></AuthCorpId>
        <InfoType><![CDATA[change_contact]]></InfoType>
        <TimeStamp>1403610513</TimeStamp>
        <ChangeType><![CDATA[delete_user]]></ChangeType>
        <UserID><![CDATA[zhangsan]]></UserID>
    </xml>

参数说明:

参数 说明
SuiteId 第三方应用的SuiteId
AuthCorpId 授权方的CorpId
InfoType 固定为change_contact
TimeStamp 时间戳
ChangeType 固定为delete_user
UserID 成员UserID

响应返回: "success" 字符串

新增部门事件(create_party)

请求方式:POST(HTTPS
请求地址:https://notify_url?msg_signature=3a7b08bb8e6dbce3c9671d6fdb69d15066227608&timestamp=1403610513&nonce=380320359

请求包体:

    <xml>
        <SuiteId><![CDATA[ww4asffe99exxx0f4c]]></SuiteId>
        <AuthCorpId><![CDATA[wxf8b4f85f3a794e77]]></AuthCorpId>
        <InfoType><![CDATA[change_contact]]></InfoType>
        <TimeStamp>1403610513</TimeStamp>
        <ChangeType><![CDATA[create_party]]></ChangeType>
        <Id>2</Id>
    </xml>

参数说明:

参数 说明
SuiteId 第三方应用的SuiteId
AuthCorpId 授权方的CorpId
InfoType 固定为change_contact
TimeStamp 时间戳
ChangeType 固定为create_party
Id 部门Id

响应返回: "success" 字符串

更新部门事件(update_party)

请求方式:POST(HTTPS
请求地址:https://notify_url?msg_signature=3a7b08bb8e6dbce3c9671d6fdb69d15066227608&timestamp=1403610513&nonce=380320359

请求包体:

    <xml>
        <SuiteId><![CDATA[ww4asffe99exxx0f4c]]></SuiteId>
        <AuthCorpId><![CDATA[wxf8b4f85f3a794e77]]></AuthCorpId>
        <InfoType><![CDATA[change_contact]]></InfoType>
        <TimeStamp>1403610513</TimeStamp>
        <ChangeType><![CDATA[update_party]]></ChangeType>
        <Id>2</Id>
    </xml>

参数说明:

参数 说明
SuiteId 第三方应用的SuiteId
AuthCorpId 授权方的CorpId
InfoType 固定为change_contact
TimeStamp 时间戳
ChangeType 固定为update_party
Id 部门Id

响应返回: "success" 字符串

删除部门事件(delete_party)

请求方式:POST(HTTPS
请求地址:https://notify_url?msg_signature=3a7b08bb8e6dbce3c9671d6fdb69d15066227608&timestamp=1403610513&nonce=380320359

请求包体:

    <xml>
        <SuiteId><![CDATA[ww4asffe99exxx0f4c]]></SuiteId>
        <AuthCorpId><![CDATA[wxf8b4f85f3a794e77]]></AuthCorpId>
        <InfoType><![CDATA[change_contact]]></InfoType>
        <TimeStamp>1403610513</TimeStamp>
        <ChangeType><![CDATA[delete_party]]></ChangeType>
        <Id>2</UserID>
    </xml>

参数说明:

参数 说明
SuiteId 第三方应用的SuiteId
AuthCorpId 授权方的CorpId
InfoType 固定为change_contact
TimeStamp 时间戳
ChangeType 固定为delete_party
Id 部门Id

响应返回: "success" 字符串

2019 Tencent SmartCampus. all right reserved,powered by Gitbooktime: 2021-03-24 08:03:20

results matching ""

    No results matching ""

    results matching ""

      No results matching ""