I am create native android application in that trying to integrate a Teams to create a teams meeting using Online meeting API in MS graph explorer i am getting meet link , but i use same API in post man it shows unauthorized error. If use in application with java code, then request is not completed. Please guide me to solve this .
Register the project in azure portal, but i am also having some doubts in permissions.
I am using this code in android GraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( auth ).buildClient();
OnlineMeeting onlineMeeting = new OnlineMeeting();
try {
onlineMeeting.startDateTime = OffsetDateTimeSerializer.deserialize("2022-01-15T21:30:34.2444915+00:00");
onlineMeeting.endDateTime = OffsetDateTimeSerializer.deserialize("2022-01-15T22:00:34.2464912+00:00");
onlineMeeting.subject = "User Token Meeting";
} catch (ParseException e) {
e.printStackTrace();
}
graphClient.me().onlineMeeting()
.buildRequest()
.post(onlineMeeting);
In Postman i am using : https://graph.microsoft.com/v1.0/me/onlineMeetings
Post object : {
"startDateTime": "2022-01-10T14:30:34.2444915-07:00",
"endDateTime": "2022-01-10T15:00:34.2464912-07:00",
"subject": "User test Meeting"
}
Greetings in advance.