javascript - How to convert the Office 365 mail messages REST response to byte [] -
in javascript file i'm using rest communicate office 365 apis mail, i'm getting messages nothing message's contentbytes, since need save message (email) in file eml extension.
the code is:
var messageendpoint = "https://outlook.office.com/api/v2.0/me/messages/" + mailid + "/attachments"; $.ajax({ type: "get", url: messageendpoint, headers: { 'authorization': 'bearer ' + outlooktoken, }, success: function (messageresponse) { } "messageresponse" has message properties( like: from, to, body, etc.) not content bytes.
anybody has idea how convert office 365 mail messages rest response byte [] save in file ?
thanks
there no property exposes entire mime stream. you'd have use exchange web services this. can file suggestion against api @ http://officespdev.uservoice.com/.
Comments
Post a Comment