Google hangouts - asp.net-mvc

I am working on an application in asp.net core. I want to add additional functionality for hangout. I want to ask is it possible to create hangout invite links in my asp.net application.
I have a scenario where I want to create hangout link and send the link to the client and book a digital meeting. Any suggestion?

As I mentioned in the comments, you can generate a Meet link with the Calendar API. To do so, create an Event with the following parameter and body:
conferenceDataVersion: 1
Request body:
{
"end": {
"date": "2020-07-08"
},
"start": {
"date": "2020-07-07"
},
"conferenceData": {
"createRequest": {
"requestId": "hangoutsMeet"
}
}
}
The insert API call will return, along with other fields, the hangoutLink parameter, which is ready to use in-browser:
"hangoutLink": "https://meet.google.com/id-of-the-meet",
References:
Resource representations
Insert event
Hope this helps!

Related

How we can call microsoft Search API with POST in React App

I want to call MS Graph Search API in react app, I registered the app with sites.read.all with delegated permissions.
The filter should be from SharePoint list data.
code
https://graph.microsoft.com/v2.0/search/query
{
"requests": [
{
"entityTypes": [
"listItem"
],
"query": {
"queryString": "contoso"
}
}
]
}
AFIAK there is no code or searching option for using Search API in MS graph, you can refer to this similar question:API based search using React
Or raise a feature request for the same in here: https://techcommunity.microsoft.com/t5/microsoft-365-developer-platform/idb-p/Microsoft365DeveloperPlatform
Hope this helps.

Create Microsoft Teams Meeting invite programatically using graph api

I am trying to create Teams Meeting invite via graph API but unable to figure out how to send meeting participants via the body as their documentation is not clear. I was using the graph API /me/onlineMeetings as mentioned here with the following body. I am not sure if this is the correct way, All I know is meeting timings, participant email ids. Can someone help me here?
Post request body:
{
"startDateTime":"2021-05-13T10:30:34.2444915-07:00",
"endDateTime":"2021-05-13T10:35:34.2464912-07:00",
"subject":"Testing Invite",
"meetingParticipants": {
"attendees": [{
"mail": "test#outlook.com"
}]
}
}
Yes, you can using graph API.
You need to update your meeting. Please refer to this Update onlineMeeting
You need to update participants property to add/remove attendees.
NOTE You can only modify the attendees field. You cannot update organizer field of the participants property.
To specify presenters and/or attendants please use the below structure.
To find additional information , please refer to the onlineMeeting Properties, and click though to the sub-objects such as attendees.
AFAIK you can not use the API to add presenters / attendees later.
{
"startDateTime": "{{startDateTime}}",
"endDateTime": "{{endDateTime}}",
"subject": "Meeting with {{Attendee_upn}} regarding {{$randomBs}}",
"autoAdmittedUsers": "EveryoneInCompany",
"participants": {
"organizer": {
"identity": {
"user": {
"upn": "jos#jvteams.xyz"
}
}
},
"attendees": [
{
"upn": "{{Attendee_upn}}",
"identity": {
"user": {
"id": "{{Attendee_id}}"
}
}
}
]
}
}

Microsoft Graph translateExchangeIds not returning the same id as EWS

I am working with both EWS and the Graph API.
I would like to create events (online meetings with skype/teams) in an calendar that is already available via EWS.
To match the calendar to the one available via Graph API i try to use https://learn.microsoft.com/en-us/graph/api/user-translateexchangeids
The calendar i created has this id when returned by the FindFolder call:
<t:FolderId Id="AAMkAGNiY2YxMjY3LTUxYjgtNGI1Yy1hOTM2LTU4MTM5OTZiNjdjYgAuAAAAAABW2gY0kRG1SqggDTNZN6i8AQAPJkKZ1XJkQ6huFmcVa6XaAAGixNZ3AAA=" ChangeKey="..."/>
<t:DisplayName>Test</t:DisplayName>
I create a request to the graph api:
{
"inputIds": [
"AAMkAGNiY2YxMjY3LTUxYjgtNGI1Yy1hOTM2LTU4MTM5OTZiNjdjYgAuAAAAAABW2gY0kRG1SqggDTNZN6i8AQAPJkKZ1XJkQ6huFmcVa6XaAAGixNZ3AAA="
],
"sourceIdType": "ewsId",
"targetIdType": "restId"}
and get the result
{
"#odata.context": "https://graph.microsoft.com/v1.0/$metadata#Collection(microsoft.graph.convertIdResult)",
"value": [
{
"sourceId": "AAMkAGNiY2YxMjY3LTUxYjgtNGI1Yy1hOTM2LTU4MTM5OTZiNjdjYgAuAAAAAABW2gY0kRG1SqggDTNZN6i8AQAPJkKZ1XJkQ6huFmcVa6XaAAGixNZ3AAA=",
"targetId": "AAMkAGNiY2YxMjY3LTUxYjgtNGI1Yy1hOTM2LTU4MTM5OTZiNjdjYgAuAAAAAABW2gY0kRG1SqggDTNZN6i8AQAPJkKZ1XJkQ6huFmcVa6XaAAGixNZ3AAA="
}
]
}
However, if i call https://graph.microsoft.com/v1.0/me/calendars i get a different id
"id": "AAMkAGNiY2YxMjY3LTUxYjgtNGI1Yy1hOTM2LTU4MTM5OTZiNjdjYgBGAAAAAABW2gY0kRG1SqggDTNZN6i8BwBIq5JjIBY-RqWQllrF0GSkAAAAB353AAAPJkKZ1XJkQ6huFmcVa6XaAAGixNowAAA=",
"name": "Test",
Is there a way to match the (ews) calendar i already have to the one returned by the Graph API?
This is a shot in the dark, because I've never dug this deeply into the weeds on the Graph Ids, but you might try calling Graph with the header that selects "immutable ids." I tried to find some details on what this actually means without much luck.
The header is:
request.Header("Prefer", "IdType=\"ImmutableId\"");
HTH, and if not, sorry for guessing.

Auto create hang out links

I am working on an application. We have successfully implemented "Google.Apis.Calendar.v3". Events are created and showing in calendar. But while creating the event I want to add functionality to auto create hangout link which i can use and send to customers. I want to ask is it possible to do it through "Google.Apis.Calendar.v3.Data". If yes, how I can implement. I will really appreciate your help.
Regards,
When making the request to create the event using insert or modifying an event using patch, you simply need to:
Set the conferenceDataVersion parameter equal one (1).
In the body add the option to "createRequest" and a "requestId" in the body as part of the "conferenceData" option like:
{
"end": {
"dateTime": "2020-07-29T09:00:00-07:00",
"timeZone": "America/Los_Angeles"
},
"start": {
"dateTime": "2020-07-28T09:00:00-07:00",
"timeZone": "America/Los_Angeles"
},
"conferenceData": {
"createRequest": {
"requestId": "<for-you-to-decide>"
}
}
}
Note:
Keep in mind the conferences are created asynchronously, but you can always check the status of your request to let your users know what’s happening. The immediate response to this call might not yet contain the fully-populated conferenceData which is indicated by status pending.
You can read about it here or in the Documentation

Get Recommendation from LinkedIn API returns empty map [:] as response

I have created a web application from which I am trying to get recommendations of a user from his/her LinkedIn Profile using URL
String url="https://api.linkedin.com/v1/people/~:(recommendations-received:(id,recommendation-type,recommendation-text,recommender))?format=json"
When I am using this URL in the
Api Explorer it works fine. And gives output:-
{ "recommendationsReceived": {
"_total": 2,
"values": [
{
"id": 558598601,
"recommendationText": "xxx is among the best team players I ever worked with. He has handled client effectively with smooth operations. I had always seen him as person with solution mindset and always look for solution rather than thinking about the problem. ",
"recommendationType": {
"code": "colleague"
},
"recommender": {
"firstName": "XXX",
"id": "YYYY",
"lastName": "XXX"
}
},
{
"id": ZZZZ,
"recommendationText": "XXX is one of the most dedicated person at work.I always him with a flexible attitude and ready to adapt himself in all situation.I have seen him work all night to catch up all the deadlines and deliver on time ."
"recommendationType": {
"code": "colleague"
},
"recommender": {
"firstName": "XXX",
"id": "YYYY",
"lastName": "XXXX"
}
}
] } }
The problem comes, when I am using this URL in my Developer app.It doesn't give any error just simple return an empty map [:] as output in response
Irrespective of these recommendation fields, I successfully get the user basic profile data such as email, id, image,firstName,lastName.Means my code is working for other fields well but not for these recommendation fields*
To find the solution, I did some internet surfing and find a link of Linked API docs
Linked API Docs
As per Docs following selection of profile fields are only available
to applications that have applied and been approved for the Apply with
LinkedIn program:
Recommendation Fields
I already created a LinkedIn Developer account to get key & Secret
So how do I apply and get approval for Apply with LinkedIn Recommendation Fields.
I already have seen the LinkedIn support but can't find the way to ask question to the Linked Developer help support
Please suggest me the right way.
After a long internet surfing,I have found something fruitful that, I have to fill up a form to get these fields.Here is the form
along with its procedural details
You can use just recommendations-received keyword. Try the following link. I am getting all recommendations details with this link.
https://api.linkedin.com/v1/people/~:(recommendations-received)?format=json

Resources