How to add contextual gadget on personal gmail - google-apps-marketplace

Can we use contextual gadget on my personal gmail OR do I have to purchase and app domain for this?
My mainfeast.json is
{
"manifest_version": 2,
"name": "unsendMe-AddContact",
"version": "0.0.0.2",
"description": "Grab the contact of the mail sender and save .",
"icons": {
"128": "ICON_PLACE3 (2) (Custom) (2).png",
"16": "ICON_PLACE3 (2) (Custom).png"
},
"container": ["app"],
"api_console_project_id": "xxxxxxxxxx"
}

Gmail Contextual Gadgets are not available on your personal email. You will need to purchase an enterprise account.
Your manifest doesn't look right - you should check out the link below for the full details:
https://developers.google.com/gmail/contextual_gadgets#hello_world_example_manifest

Related

Dynamic typeahead in Adaptive Card Task flow

I'm trying to implement the dynamic typeahead search as was shown on the below resources:
https://learn.microsoft.com/en-us/microsoftteams/platform/task-modules-and-cards/cards/dynamic-search?tabs=desktop%2Ccsharp
https://github.com/OfficeDev/Microsoft-Teams-Samples/tree/main/samples/bot-type-ahead-search-adaptive-cards/csharp
I'm having the following Adaptive Card returned from the OnTeamsMessagingExtensionFetchTaskAsync (from message action):
{
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"version": "1.5",
"body": [
{
"id": "choiceSelect",
"type": "Input.ChoiceSet",
"choices": [
{
"title": "Choice 1",
"value": "Choice 1"
},
{
"title": "Choice 2",
"value": "Choice 2"
}
],
"placeholder": "Placeholder text",
"style": "filtered",
"choices.data": {
"type": "Data.Query",
"dataset": "cases"
}
}
]
}
Card is rendered correctly, but when I start typing, I'm getting the following results:
No request is being made. I was trying to debug the JS, but it is troublesome for me - I couldn't pinpoint the exact place it fails, but got these symbols to lookup: executeSearchInvoke, enableAppPermissionEnforcement and enableTenantSettingsForBots in 3.2-app.min.js.
Can anyone point me in the right direction? Is there some kind of dependency or permission I should add to the bot? Some setting in Teams Admin Center? I can add that static typeahead works flawlessly, but I need the dynamic one (big data collection to query).
EDIT:
I have confirmed that the app is added to the team (it is visible on the list of apps in team settings); I've removed and added it again just in case. I am still getting the same results.
List of permissions visible from the App details page:
This app will have permission to:
Receive messages and data that I provide to it.
Send me messages and notifications.
Access my profile information such as my name, email address, company name, and preferred language.
Receive messages and data that team members provide to it in a channel.
Send messages and notifications in a channel.
Access this team's information such as team name, channel list and roster (including team member's names and email addresses) - and use this to contact them​.

create calendar on office 365 outlook

I am an administrator of Microsoft office 365 in a mid-sized company.
All employees want to see all other's schedules. They, of course, know they can add other's calendar on their own outlook and see schedule, though They want to see see all other's schedules. It is somehow cumbersome for them to add all employees on their own outlook. They want admin to manage calendar group on outlook in company-wide.
I did not find any powershell cmdlet to manage calendar group, but found graph API Create Calendar https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/user_post_calendars.
For example, if I were A#example.com and wanted to see B's calendar. When I run create calendar API on graph explorer with owner:{"address":"b#example.com", "name":"B"} and it ends with success and shows result that owner:{"address":"a#example.com", "name":"A"}. Of course I cannot see B's schedule on my outlook.
this is post request body:
{
"name": "b",
"color": "auto",
"owner": {"address":"b#example.com", "name":"b"}
}
This is result:
{
"#odata.context": ....
"name": "b",
"color": "auto",
"changeKey": "......",
"canShare": true,
"canViewPrivateItems": true,
"canEdit": true,
"owner": {
"name": "a",
"address": "a#example.com"
}
}
How can I satisfy my employees' request?
Thank you,

Get al office 365 outlook's contact folders

I am looking to get All Contact folders in Outlook using https://oauthplay.azurewebsites.net/. However, for some reason I cannot get the default "Contacts" folder, just the ones created by the user. For example, I did a GET on https://outlook.office.com/api/v2.0/me/contactfolders, and this is an example of the result:
{
"value": [
{
"Id": "AAMkAGU0ZjM2ZWQ2LTZiYjQtNDY2Ny1hMTBjLTZmOTM4ZTMyMmRlNQAuAAAAAADfJok2QyPPRKN0MNMI2ntdAQAjvTBpWNeCQYCyqAy3mDiPAAAAAAFbAAA=",
"ParentFolderId": "AAMkAGU0ZjM2ZWQ2LTZiYjQtNDY2Ny1hMTBjLTZmOTM4ZTMyMmRlNQAuAAAAAADfJok2QyPPRKN0MNMI2ntdAQAjvTBpWNeCQYCyqAy3mDiPAAAAAAEOAAA=",
"DisplayName": "Test1"
},
{
"Id": "AI2ntdAQAjvTBpWNeCQYCyqAy3mDiPAAAAAAFcAAA=",
"ParentFolderId": "0MNMI2ntdAQAjvTBpWNeCQYCyqAy3mDiPAAAAAAEOAAA=",
"DisplayName": "Test2"
}
]
}
Any idea how to get the default contact folder?
You could use this api:
https://outlook.office.com/api/v2.0/me/contactfolders
This will get the contact folder collection under the default Contacts folder of the signed-in user (.../me/contactfolders), or under the specified contact folder.
For more information, please refer to this link:
Outlook Contacts REST API reference (version 2.0)

How to fetch user's email address associated with Apple Pay Account from Apple Pay using JavaScript

I wanted to know if Apple has an API which we can use to fetch user's email address associated with apple pay account.
FYI I am using apple pay js (ApplePaySession) for apple pay.
Or is there another way to fetch user's email address from Apple pay in JavaScript.
Thank You!
The email address is provided within the onpaymentauthorized callback of your ApplePaySession.
Note: It is an inherited property, so it may be somewhat difficult to find in your developer console (in Chrome you've got to drill down into the event's __proto__ property).
You must specifically ask for the email address by including a requiredShippingContactFields property in your payment request:
requiredShippingContactFields: [
'phone',
'email'
]
And the email address will be available like so:
var session = new ApplePaySession(2, myPaymentRequest);
session.onpaymentauthorized = function(event){
console.log(event.payment.shippingContact.shippingAddress);
};
Once the user authorizes the transaction, you will get the shippingContact Object like this:-
{
"locality": “India",
"country": "India",
"postalCode": "95014-2083",
"administrativeArea": "CA",
"emailAddress": “sachin#example.com”,
"familyName": “Tendulkar",
"addressLines": [
"1 Infinite Loop"
],
"givenName": “Sachin",
"countryCode": "INDIA",
"phoneNumber": "(408) 555-5555"
}
from this object you can access the email id.

Integrating Microsoft team into my web app

I have a web app where if a user signs up, a notification is sent to the slack channel. I want to achieve the same thing in Microsoft team but I cant find any good resources. When a new user signs up, a message will be posted into the microsoft team group.Will it be possible to do this?
This can be easily achieved in Microsoft Teams using Connectors.
Here are the steps to post data to any channel:
In Microsoft Teams, choose the More options (⋯) button next to the
channel name in the list of channels and then choose Connectors.
Add an Incoming webhook and copy the webhook URL.
You can post Message Card given below to this URL using
Postman/Fiddler/Code.
{
"summary": "Alert!",
"themeColor": "0078D7",
"sections": [
{
"activityTitle": "Web app event",
"text": "Something happened in the web app!"
}],
"potentialAction": [
{
"#type": "OpenUri",
"name": "View event",
"targets": [
{ "os": "default", "uri": "http://mywebapp.com/path/to/event" }]
}]
}
You can also Build your own Connector with custom configurations.

Resources