在MS Graph Java SDK中的”Presence”资源类型是什么?

huangapple go评论77阅读模式
英文:

Presence resource type in MS Graph Java SDK?

问题

我目前正在尝试读取 Microsoft Teams 用户的当前状态并进行传递。
在 C# 中,我能够相对容易地做到这一点,但现在我不得不切换到 Java
这就是我遇到问题的地方。
来自 Microsoft Graph API 的 在线状态资源类型 仅在 MS Graph API Beta 中可用,因此在我的 Java 应用程序中,我访问 MS Graph Java SDK "com.microsoft.graph:microsoft-graph:1.8.+"。但是我无法在任何地方找到在线状态资源类型的类,是否有额外的 MS Graph Beta Java SDK?

英文:

I'm currently trying to read out the present status of Microsoft Teams users and pass it on. <br>
In C# I was able to do this relatively easily, but now I had to switch to Java.<br>
And that's where I run into my problems.
The presence resource type from the Microsoft Graph API is only available in the MS Graph API Beta, so in my Java application, I access the MS Graph Java SDK &quot;com.microsoft.graph:microsoft-graph:1.8.+&quot;. But I can't find the class for the presence resource type anywhere, is there an extra MS Graph Beta Java SDK?

答案1

得分: 1

update: 现在已经有一个适用于Java的测试版SDK可用。

此外,presence type已在v1 SDK的2.5.0版本中添加。

英文:

update: there's now a beta sdk available for java.

Also, the presence type was added to the v1 sdk with version 2.5.0

答案2

得分: 0

我现在用一个自定义请求解决了整个问题。虽然不是最佳解决方案,但只要存在状态仅在测试版中可用而不在正式版本中可用,可能没有比通过SDK进行操作更好的方法。

英文:

I have now solved the whole thing with a custom request. Not the best solution, but as long as the presence status is only available in the beta and not in the release version, there is probably no better way to do it via the SDK

huangapple
  • 本文由 发表于 2020年7月27日 21:01:54
  • 转载请务必保留本文链接:https://go.coder-hub.com/63115906.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定