Microsoft Graph API request.post с новой версией ⇐ JAVA
-
Anonymous
Microsoft Graph API request.post с новой версией
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
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
Мобильная версия