Google + API Get Hangout Id from URL - google-api

I am trying to integrate Google Hangout API into my website.
The user wants to:
Create a hangout
Copy that URL
Save that URL in our site
Display information about hangout
I know that I can get the information I need using: https://www.googleapis.com/plus/v1/activities/{activityId}
What I am struggling with is getting the activity id.
The only solution I see is:
First somehow find the userid /plus/v1/people?query
Then list the activities for that person /plus/v1/people/00000/activities/ and match the url
Then call /plus/v1/activities/
There as to be an easier way surely!

I think the easier solution would be to go a different route entirely. Instead of trying to get the hangout information via the Google+ post/activity, create a Hangout App that sends the URL for the hangout to your server. Under this scenario, the steps would be one of the two following scenarios.
Simple way:
User starts a hangout video chat from your website
The website link to create it also includes the gid of an app to start when the video chat starts
The app sends a message to your website indicating the URL of the hangout that was started
Alternate way:
User starts a hangout however they want to
When they're ready to tell your website, they run the same app
The app sends a message to your website indicating the URL of the hangout
Depending on your needs, you can then have the app do other things associated with monitoring the hangout is still alive, the number of people, etc. Your website would then display the information it receives using whatever format you wish.
You can find out more about this method in the video How do I Include a Hangout on my Website?

Related

Google OAuth Application Verification without Website

I am using the OAuth Functionality in a local Console Program to request the Videos for my Youtube Channel and upload Videos to Youtube.
For the Example which Google gives OAuth is used to authenticate to be able to retrieve the wanted data. But the Videos I am uploading keep getting put to private because my API Service is not verified.
Now I want to verify my API Service but I dont have a website for it so I can't provide any links for data security information or the main page of it. I mean it is a desktop app which only I am using and which is not meant to be publicly available.
How can I fulfill the verification process without any option to provide this informations?
private videos
If you check the top of the page for Videos: insert you will find that your videos are being uploaded private because your app has not been though a security audit.
app verification
In order to apply for app verification there are a number of urls that you need to supply
You will need to register a domain and claim it in web masters and then you will be able to add them.
If you want to be able to upload public videos via the YouTube Data api your app needs to be verified. In order to verify it you need to be able to show the TOS, privacy policy and the application home page. There is no way around this even if its a desktop app. Even if its single user you still need to do this.
I have a video which shows you what you need to know to verify your app.
What you need to know about Google verification in 2021.

Check wether an user has used hangout before

Is there a way to check wether an user has used hangout before via API? I need it to build a report and promoting hangout within the organisations.
No, there is no API that tracks this.
Depending on your exact needs, you might be able to run an organizational hangout app when they start it, triggered by the start button, which would report they're using the app... but this isn't foolproof (it would ignore hangouts started via calendar, for example).

What is the format of a unique Google Hangout with app id?

I'm building my first Google Hangout app and can access it successfully using the URL:
https://hangoutsapi.talkgadget.google.com/hangouts/_/?gid=APP_ID
or https://plus.google.com/hangouts/_/?gid=APP_ID
What is the proper format of a URL that contains a unique hangout id that could be shared across users so they end up in the same hangout and using the app?
The following URL loads a unique hangout, but discards the app:
https://plus.google.com/hangouts/_/UNIQUE_HANGOUT_ID?gid=APP_ID
I tested https://plus.google.com/hangouts/_/UNIQUE_HANGOUT_ID?gid=APP_ID this evening, and it worked correctly - placing the person in the same hangout and running the correct app.
Is the app in question public? If not, this may be the cause of the problem.
As an aside, the https://hangoutsapi.talkgadget.google.com/ is now deprecated, since it was related to the old Hangout Development Sandbox which is no longer in use.

How to check Google+ Hangout ending event using the API

I have been working on a web app that, among other things, allows users to communicate with each other using Google+ Hangout.
The web app initiates the hangout and passes the Hangout URL to other potential participants. During the Hangout sessions the Hangout app sends information back to the server (using Ajax) on several events such as “onParticipantsAdded", "onParticipantsRemoved" etc.
I am trying to find out a way to notify the web app when the Hangout is over. The other events I mentioned (such as onParticipantsRemoved) will not work once the last participant leaves.
Currently I am sending a “heartbeat” from the hangout to the web app every few minutes, but I am wondering if there is a better way to know when the Hangout ends?
Since the hangout operates inside a window, you might be able to catch the onclose event for that window, but best practice is to rely on a heartbeat, as you've described.

Create Hangout session with unique link

I'm working to create a hangout app. where initiator can create a hangout session with unique link and invite others user (called attendees) by giving that unique link. so when an attendee click that link he can attend only that hangout session.
I've created an app. with basic XML file provided by Google, but can't figure out how to create unique link for each hangout session. Is there any functions in Hangout API? as far as I've read API documentation I don't found such function. Can anybody suggest me how to do it?
Please help me....
This YouTube video discusses how to do what you want: http://www.youtube.com/watch?v=Al4SbeVyLm4
The general procedure will be for the initiator to create a hangout using a link on your website and, as part of creating it, starting up a hangout app. This app sends the URL for the hangout back to your website where it can be sent to the attendees.

Resources