Microsoft Graph API request.post с новой версиейJAVA

Программисты JAVA общаются здесь
Ответить
Anonymous
 Microsoft Graph API request.post с новой версией

Сообщение Anonymous »


I was using this code earlier

CustomRequest request = new CustomRequest(String.format(sendMailUri, toEmail), getGraphServiceClient(), List.of(new HeaderOption("Content-Type", "text/plain")), String.class); request.post(encodedContent); //here encodedContent is a string here the version used is 5.75.0 and the sendMailUri is ${app.graphAPI.sendMailUri:https://graph.microsoft.com/v1.0/users/%s/sendMail}

I need to migrate this to latest version 6.4.0 how to do that , I know HeaderOption is depreciated I tried doing a lot of stuff but it was not working, Please help me out,

The main issue is that the request.post(string) does not send the string in the body , with the latest version , how do I implement this kind of strategy

Thanks in advance!!


Источник: https://stackoverflow.com/questions/781 ... ew-version
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

Вернуться в «JAVA»