无法使用 $value 获取消息的 MIME 版本 [英] Unable to get MIME version of a Message using $value
本文介绍了无法使用 $value 获取消息的 MIME 版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我无法使用文档中指定的 $value
获取消息的 MIME.如何获取 MIME?
I am unable to get MIME for a message using $value
like specified in the documentation. How to get MIME?
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.header("Authorization", "Bearer " + accessToken)
.url("https://graph.microsoft.com/v1.0/me/messages/k4ZDQ5LTgzMTYtNGZhYS04ZTU3LWZhMjFmZmUzNmE1YwBGAAAAAABzUENX1K4kR6h6KAAA7ENoUb5BySZFX6KemUxNwAAAv_a5nAAA=/?value")
.build();
Response response = null;
String body;
try {
response = client.newCall(request).execute();
body = response.body().string();
推荐答案
您的 URL 不正确,它们使用的是 /?value
但应该使用 /$value
($
不是 ?
).$value
是路径的一部分,而不是查询参数:
Your URLs are incorrect, they're using /?value
but should be using /$value
($
not ?
). The $value
is part of the path, not a query param:
https://graph.microsoft.com/v1.0/me/messages/4aade2547798441eab5188a7a2436bc1/$value
这篇关于无法使用 $value 获取消息的 MIME 版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文