1

Just wanted to check whether its possible to do an HTTP request to get Presence data on Lync 2010, sort of like how it done on Lync 2007 e.h.

   <cwaRequests xmlns="http://schemas.microsoft.com/2006/09/rtc/cwa" sid="91">
    <queryPresence rid="4">
      <uris>
          <uri>sip:jessicaa@contoso.com</uri>
      </uris>
    </queryPresence>
   </cwaRequests>

I wanted to make this request from a PHP script on a Linux machine. Is this possible, without having to install any additional software?

Any help would be awesome.

Tushar Gupta - curioustushar
  • 58,085
  • 24
  • 103
  • 107
  • You could write a UCMA application and expose the functionality to query presence data for a specific SIP. There are not really any exposed Web APIs in Lync Server 2010. – ShelbyZ Nov 09 '16 at 02:35
  • That was what I was worried, was hoping there was some kind of Web API. Well we were proposing to writing an application to to get presence data. Would you happen to recommend any good sites or tutorials on how to approach this? Thanks for replying – ash_skywalker10 Nov 09 '16 at 23:14

2 Answers2

0

If you are interested in creating a Web Service that exposes UCMA functionality you will want to consider looking into:

Some things to keep in mind when designing/devloping the Web API portion is that UCMA is a 64-bit assembly meaning you should not expect to run it under a 32-bit process. IF you ever forget this you will run into an issue with a dependent assembly called SIPEPS not being found.

Once you have your feet wet with UCMA you will want to look into developing a Web API to expose this UMCA presence functionality. I will leave the Web API portion a little sparse as there are many different options on how to host and expose a Web API, but I would suggest looking into Getting Started with ASP.NET Web API 2 (C#) as a start.

ShelbyZ
  • 1,494
  • 1
  • 14
  • 32
0

The two current web-based API's Skype Web SDK and UCWA aren't supported on Lync 2010. I think the only way is as @ShellbyZ has said, exposing a UCMA 4 application through a Web API.

Nic Strong
  • 6,532
  • 4
  • 35
  • 50