Jump to content

Hello, i hope you all are doing well,

 

I'm developing wordpress plugin that will allow people to create google hangouts group and that group will display on a website, whenever someone wenst to my website he will see all google hangouts groups and how much people are in those groups talking ( i know max is 10 ). He will be able to create his own group and if he will do that his group also will display in website OR he will be able to join existing groups and talk with people.

 

My questions:

1. How can i use google hangouts API in php/javascripts ( more examples better )

 

2. How can i get people that are in hangouts group and display with php/javascript in my website their photos if they does not have photos it will show default picture that i will select with code.

 

3. How can i display groups on website with php/javascript whenever group is created by user?

 

 

More examples more better for these questions, main problem that i dont know how to insert and use tgoogle hangouts api and i find difficult to regonize if documentation that i'm reading is for website or for mobile app for example:

 

https://developers.google.com/+/hangouts/api/gapi.hangout here i found

class Participant(

which how i understand allows to get people information from the hangout group and display it somewhere, but the problem is i dont understand wether this is for website or for something else, if i would know answers or see examples to my questions it would be much easier to develop what im trying to do, because i was searching for hours really did and didn't find anything understandable and i'm not noob on php just i find this especially hard.

 

Kind Regards,

 

Evelina

Link to comment
https://linustechtips.com/topic/270199-google-hangouts-api-usage-in-phpjavascript/
Share on other sites

Link to post
Share on other sites

so i was experimenting with Google API and i achieved some progress with it, i bought Google developer license which cost 5 $, have my own SSL where i can experiment and i have managed to create Google hangouts app inside hangouts that can display people what are in that particular hangout session or various of information which i found here: https://developers.google.com/+/hangouts/api/gapi.hangout


But that is the problem is there any way to display data using PHP or some other method outside Google hangouts? For example how can i display all Google hangouts URLs on a website that are using my app? Is that possible?


Anything would count as help for me there is very small amount of information i found about this. Thank you.


Link to post
Share on other sites

It looks like you're looking into creating apps for hangout, not hooking into hangout from your site like you want to. I'd be surprised if google would allow you to post data outside their Hangouts sandbox [i'm assuming here] to a site of your choosing, so it seems like what you're proposing is impossible. It's possible that I missed something, but just the Getting Started documentation seems to spell out the usage of the Hangouts API.

Link to post
Share on other sites

Hello, i hope you are doing well.

 

Its possible i spend 3 days to figuring out everything and i understood how things works the trick was that my JavaScript running in the Hangouts app has to make AJAX requests to my server in order to get the data and i can then display that where i want. Your given documentation is for starters which i believe i passed that when i understood and developed full working app which does what i want. Thanks anyway for the reply.

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×