office365api - Outlook Mail REST API: send message with attachment -


i'm trying use next api method: https://msdn.microsoft.com/office/office365/api/mail-rest-operations#sendmessages. sending messages without attachments works fine, can not understand how send message attachments.

according docs, message structure can contain array of attachments items of type https://msdn.microsoft.com/office/office365/api/complex-types-for-mail-contacts-calendar#restapiresourcesfileattachment . problem in field contentbytes -- impossible dump bytes json before sending request api method (actually dumping blob json nonsense).

how should pass attachments using rest api @ all?

thanks.

there's example of passing attachment on page: https://msdn.microsoft.com/office/office365/api/mail-rest-operations#sendmessageonthefly


Comments

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -