Daniel Watrous
Daniel Watrous

Reputation: 3821

get skype for business presence status programmatically

I need to read the current presence status from Skype for Business (16.5.185) on OSX Sierra. Is there some way to read this locally on my laptop with any programming language, like python?

I think we use office365 and I don't have any control over the server or its settings, so I really would like to be able to find this information locally

Upvotes: 4

Views: 6650

Answers (1)

BastianW
BastianW

Reputation: 2658

You might be able to use UCWA and then do something like (more infos here):

HTTP/1.1 200 OK
Connection: Keep-Alive
Content-Length: 852
Date: Thu, 18 Jan 2013 00:04:19 GMT
Content-Type: application/json; charset=utf-8
Server: Microsoft-IIS/7.5
Cache-Control: no-cache
X-AspNet-Version: 4.0.30319
X-MS-Server-Fqdn: W15-LYNC-SE1.contoso.com
X-Powered-By: ASP.NET

{
"availability":"Offline",
"deviceType":"Unknown",
"lastActive":"\/Date(1358827096000)\/",
"_links":{
"self":{"href":"/ucwa/oauth/v1/applications/101/people/[email protected]/presence"}
},
"rel":"contactPresence"
}

That should be possible via python.

If UCWA will not work for you you need to involve the Skype for Business client API (more infos here).

P.S. Keep noted that an Administrator can remove the LastActive attribute (so the time how long a user is e.g. away isn´t calculated) as explained here.

Upvotes: 1

Related Questions