【问题标题】:How can we use ms office communicator client exposed APIs in python, is that possible?我们如何在 python 中使用 ms office communicator 客户端公开的 API,这可能吗?
【发布时间】:2011-11-04 11:37:52
【问题描述】:

我想使用ms office communicator客户端api,我想在python中使用那些可以吗?

【问题讨论】:

    标签: python api office-communicator


    【解决方案1】:
    >>> 导入 win32com.client >>> msg = win32com.client.Dispatch('Communicator.UIAutomation') >>> msg.InstantMessage('user@domain.com')

    【讨论】:

    • 知道如何对事件做出反应吗?当我尝试使用“DispatchWithEvents”而不是“Dispatch”时,出现错误:ValueError: This COM object does not support events.
    【解决方案2】:

    有一个 JSON API 可以通过“office communicator web access”访问所有的office communicator 功能。您可以download 对该 API 的描述。但是还没有人实现模块。 API 非常复杂。

    【讨论】:

      【解决方案3】:

      我不太了解 Office 通信器,但如果它公开了 COM 接口,您应该能够通过 COM http://starship.python.net/crew/skippy/ 的 Mark Hammond python 绑定来访问它

      否则,如果它公开了 .NET API,您应该能够使用 IronPython 访问它

      希望对你有帮助

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2022-11-10
        • 1970-01-01
        • 2023-03-24
        • 2013-10-30
        • 2015-04-03
        • 2013-04-10
        • 2016-12-19
        • 2018-01-05
        相关资源
        最近更新 更多