【问题标题】:Creating group conversations with attachments via unified api通过统一 api 创建带附件的群组对话
【发布时间】:2015-09-17 21:15:42
【问题描述】:
【问题讨论】:
标签:
office365
office365api
【解决方案1】:
我还没有尝试过,但是您可以通过转到 https://graph.microsoft.com/beta/$metadata 来查看统一 API 的元数据。从上面看,Attachment 实体的结构似乎与Attachment entity in the Outlook APIs 相同。
元数据的相关位:
<EntityType Name="Attachment">
<Key>
<PropertyRef Name="Id"/>
</Key>
<Property Name="Id" Unicode="false" Type="Edm.String" Nullable="false"/>
<Property Name="Name" Unicode="false" Type="Edm.String"/>
<Property Name="ContentType" Unicode="false" Type="Edm.String"/>
<Property Name="Size" Type="Edm.Int32" Nullable="false"/>
<Property Name="IsInline" Type="Edm.Boolean" Nullable="false"/>
<Property Name="DateTimeLastModified" Type="Edm.DateTimeOffset"/>
</EntityType>
<EntityType Name="FileAttachment" BaseType="Microsoft.Graph.Attachment">
<Property Name="ContentId" Unicode="false" Type="Edm.String"/>
<Property Name="ContentLocation" Unicode="false" Type="Edm.String"/>
<Property Name="IsContactPhoto" Type="Edm.Boolean" Nullable="false"/>
<Property Name="ContentBytes" Type="Edm.Binary"/>
</EntityType>
<EntityType Name="ItemAttachment" BaseType="Microsoft.Graph.Attachment">
<NavigationProperty Name="Item" Type="Microsoft.Graph.OutlookItem" Nullable="false" ContainsTarget="true"/>
</EntityType>