google hangouts api unable to fire events - javascript

I'm quite in confusion in using Google Hangouts API.
I've gone through the API here and have created the project and followed the steps given in the second step.
I've a requirement where user will initiate a hangout and send the link to some of the people and people can join in it.
Let's consider the sample app here.
How can I make use of the Gadget XML and Source Code in my MVC application and start a Hangout?
They have given a sample XML file which contains some html code also.
How can I call that XML file in my application and be able to fire some of the events of hangouts like getHangoutUrl()?

Initiate a hangout : Hangout Button is what you are looking for, you just need to add required javascript files to your page and use 'gapi.hangout.render' to render the button on your page.
Send out hangout link to others : you can use the invite option where you can add invites(email, gplus profile_id, phone no.) while rendering the hangout button, more info and examples here.
Gadget XML file : This file should to be hosted on your server on some public url which doesn't need any kind of authentication.
You can add your scripts, styles and html to be rendered on hangout app server more info here.
Handling events in hangout app : Well you can use ajax to post changes in hangout app to your server. But it would be better if you use Pusher to take care of hangout triggered events(onYouTubeLiveIdReady, onParticipantsAdded etc.) asynchronously and push changes to clients.
You can also use it to add chat messages feature to your app using it, so that viewers can also interact with the hangout participants incase of Hoa broadcast.

Related

Making Google Calendar agenda view into cards

I'm using Mobirise to build our club's website, and they want to show some of our events at the top of the page.
I thought I could make something like this, with the outer blue being where the calendar frame would end (very rough drawing, don't judge too hard).
Tockify had something pretty close, but I figured there's a way to code something like this, or perhaps another service that's free that can do this. I would prefer not to use PHP, but embed some JavaScript into the HTML that can do this.
Thanks!
To retrieve events from an account's calendar, you need to connect to the Google Calendar API using authorized credentials.
For this you need to create a project in Google Cloud Platform, and enable the calendar API for that project. You will also need to create credentials for your app to use when making calls to the API.
After you have a project, credentials and you have enabled the Calendar API, it is time to code a script that uses the credentials to get the data you want from the Calendar API.
There are several language client libraries for each developer's need. You could use JavaScript for your application.
Here is a quickstart that should get you up and running to make those Calendar API calls you are looking for.
Calendar API Quickstart

Getting feedback from a JavaScript application without a registering for a centralized service

I created a Chrome extension which is just HTML/CSS/JavaScript. When the user clicks on a button, I have it send a message to me. But the problem is I don't want to include any API keys or server information where the app can POST to as it can be used for abuse if someone was to extract this information from my Chrome app. Is there a method of getting a response from a web app with a public service where anyone can post to? I was thinking pastebin, but even that requires an API key.
You could ask the user to create their own key. For example, many GitHub extensions require an API key to make requests to the GitHub API, so what they do is they send you to a GitHub settings page where you can create a personal API key.

Azure Media Services Job status webhook notifications

I have a nodejs based application that I'm running on azure. It's basically a CRUD app for video files. I'm currently able to upload and create jobs with Azure Media Services via the REST api (https://app-name.restv2.westus2-2.media.azure.net/api/Jobs). However I am unable to get any job status or resulting metadata. Ideally I will create a thumbnail and then send the assetID back to my servers along with the sources metadata and from there I can determine which other output types I'd like to create.
I've attempted setting up an Event Subscription via a webhook endpoint in the "Events" blade of my instance of media services on the azure portal website. The way I understand it I should be getting https POST requests whenever there is a status update?
I know that I need to validate the endpoint as per the instructions here: https://learn.microsoft.com/en-us/azure/event-grid/security-authentication#validation-details
And have done so successfully.
Am I missing something? I can see and successfully log the initial validation query from Events but never get another event of any type.
Any info you can toss my way is MUCH appreciated.
If you want to use webhooks, please follow the steps in this document. The Event (Grid) notifications work only with our v3 APIs which are currently in preview. And in v3, we have not completed the work to return Job details - you would only get notified of the final state of the Job.

How to send toast message from SFB web SDK to UCMA Bot

I am using latest SFB web SDK for connecting audio call with UCMA Bot. I want to send toast message from SFB web SDK to UCMA Bot. I tried with IM call that working fine, but not working in audio call scenario. I search about it, but I haven't found any relevant resources. All blog talks about only how to connect call, not about with toast message. Thanks in advance.
In your UCMA application that correctly handles your IM scenario you would have registered for incoming IM calls using localEndpoint.RegisterForIncomingCall<InstantMessage>(IMCallDelegate).
To handle incoming audio instead of registering <InstanceMessage> you need to register for <AudioVideoCall> and within that delegate set up event handlers on call.audioVideoFlowConfigurationRequested and call.Flow.StateChanged events as appropriate.
For example:-
localEndpoint.RegisterForIncomingCall<AudioVideoCall>(AVCallDelegate);
See the MSDN article of call.AudioVideoFlowConfirgationRequested for more details. https://msdn.microsoft.com/EN-US/library/office/microsoft.rtc.collaboration.audiovideo.audiovideocall.audiovideoflowconfigurationrequested_di_3_uc_ocs14mreflyncuc3cr.aspx

Monitor incoming emails in app for Office 2013 using JavaScript API

I am looking to monitor all new incoming emails in Outlook Online (Outlook web App) using JavaScript API for Office and get the email's details like sender, subject etc.. Basically I need to send an auto reply to sender with tracking number attached to subject.
I tried to use Office.context.mailbox object, but it didn't work for me. I need to execute my app every time whenever there is a new email in my mailbox.
Any Ideas or suggestions on this?
JS API for Office doesn't provide anything for that. You may try to use Outlook Notifications REST API. Or develop a COM add-in (VSTO) or VBA macro where you can handle the NewMailEx event of the Application class. See Selecting an API or Technology for Developing Outlook Solutions for more information.

Categories

Resources