i'm using microsoft graph api for fetching office 365 mails. i got all email from api call. but i don't know how to save attachment from the message object. how to save contentBytes to file
Microsoft\Graph\Model\Message Object
(
[_propDict:protected] => Array
(
[@odata.context] => https://graph.microsoft.com/v1.0/$metada
[@odata.type] => #microsoft.graph.fileAttachment
[@odata.mediaContentType] => application/pdf
[id] => AAMkADM4MDYwMDkxLWRmN2UtNDJmMC04NDEwLTljZmQ2N2I4Zjc5NABGAAAAAAAix7kDZj2fRq
[lastModifiedDateTime] => 2016-04-18T09:44:53Z
[name] => 1 ) Muhammad Abdullah New.pdf
[contentType] => application/pdf
[size] => 104767
isInline] =>
[contentId] => C#$F3@eurprd06.prod.outlook.com
[contentLocation] =>
[contentBytes] => JVBERi0xLjUNJeLjz9MNyuFJFtfTffYSTIgCjUwNSAwIG9iag08PC9MaW
)
)
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/35sZots
via IFTTT
Aucun commentaire:
Enregistrer un commentaire