Google API: show online contacts for Google Talk/Chat and Google Hangout - google-plus

I might have overlooked this, but I'd like to implement Google Talk and Google Hangout on my site and I'm looking for some kind of (official, preferably PHP) API call that retrieves the online/offline contacts of a Google+ user. (similar to the list of online contacts next to Gmail)
Is this API functionality available and is it possible to provide the user with the option to select contact(s) to start a Google Hangout with?

To start, you're likely going to need to leverage a few different APIs. Since I cannot add a comment to ask questions, here's a recommended reading list based on my recent work with the Plus & Hangouts APIs:
Google Plus - https://developers.google.com/+/api/latest/people/list - Collect a list of people in your circles. This will not tell you who's online or offline. May be optional (see #2). Unfortunately, this call is not available yet in the PHP Client Library, so I created one for my personal project and am waiting on some vetting to submit it back to the Google project. If you're interested, I'd be happy to share.
Google Talk - https://developers.google.com/talk/ - Use that query the Talk service to see who's online and/or offline.
Starting a Hangout - Seems this discussion # the developer group is similar to your question and can best point you in a good starting direction. https://groups.google.com/forum/#!topic/google-plus-developers/r_f7iweZ7c8
Hope that helps & curious to hear how it goes!

Related

Can I track if someone clicked a link on my Twitter post

I have a private business Twitter account and I would like to know when someone clicks any link inside one of my posts. This solution cannot assume that we know the form of the link being posted.
For example a twitter post like this:
Have you guys heard of this amazing site called google?
I would like to see how many people clicked on this google.com link. I don't need to know any specific information about who they are, just if it was clicked or not.
Ideally I would want this from the API but crawlers and plugins are also possible. I would like to avoid using a paid tool but those would be acceptable.
I think you have multiple choices:
Use google firebase or google analytics
Create your own short link services by python or any other programming languages.
Just search in the google and look for short link generators which gives appropriate service.
Hi using the twitter api you should be able to understand how many clicks a link has.
https://developer.twitter.com/en/docs/twitter-api/metrics
But to have all this info automated you might need to use a third-party tool.
This should be the most straight forward solution.

Wechat : does an SDK / API exists?

I'm online on wechat (an instant messenger, not to be confused with weechat, that is an IRC client) and following a lot of groups for work. I'm searching for an SDK, an API set, to be able to automitize info collecting from groups and or individuals.
But i'm not aware of any way to do it.
Please, this is NOT an 'opinion' question, I'm litterally asking you if you know a way to receive data from weechat, because I cannot find it.
I see the area on weechat website where a company can ask for accces to API, but, really I cannot find other tools.
Edit 1: Chinese DOC, I think: https://open.weixin.qq.com/cgi-bin/showdocument?action=dir_list&t=resource/res_list&verify=1&id=open1419318183&token=&lang=zh_CN
Edit 2: Chinese DOC more similar to a JS api :http://work.weixin.qq.com/api/doc#10029/%E5%A4%96%E9%83%A8%E8%81%94%E7%B3%BB%E4%BA%BA%E9%80%89%E4%BA%BA%E6%8E%A5%E5%8F%A3
Obviously, use google translator !
As from my OP, there are some docs, official docs, but the real problem is that to create even a simply Mini Program, we need to subscribe (paid) and also paying at one point a chinese-only page asks by country and the list simply does not include Italy, so I simply cannot subscribe.

Track how often link was clicked

I am currently running a website where I promote different coffees from pubs in my city. On my website I have links to the different coffees.
I have recently seen some of this links being shared on Facebook and other social networks.
So I was wondering if it is somehow possible to track how often one of this links are being clicked?
I have tried using redirects to my site but Facebook uses my pictures in the previews, whereas I don't want this because it is misleading.
I have seen that this works with Bitly so it must somehow be possible?
And there are of course different services providing this, but it would be nice if it would run without any foreign services.
So basically I am looking for a solution which will let me know how often a link, origination from my site was clicked in Facebook, Google+ or any other forum.
There definitely is. Try looking into Google Analytics, it will show you show much data from your personal websites and links that it can blow your mind! Here is the link
Google Analytics helps you analyze visitor traffic and paint a
complete picture of your audience and their needs. Track the routes
people take to reach you and the devices they use to get there with
reporting tools like Traffic Sources. Learn what people are looking
for and what they like with In-Page Analytics. Then tailor your
marketing and site content for maximum impact.
You can even get a free package to use!
Hope this helps!
Yes you have plenty of analytical options.
Something as straight forward as Google Analytics for example.
If you are using cpanel on your hosts server, you even have options such as AWSTATS, which will also provide information.
If all else fails you can even use post data stored in your apache / nginx logs.
Since you have amended your question you might want to check out this tool. It is not google. :)
It is called Click Meter and performs Link Tracking and provides click reports, etc

Hosting Google Plus Communities on My Website

Is it possible to embed a google community into a website page?
This way our clients can benefit from content and all other features in our website, yet be able to collaborate using Google Communities.
Ideally I would like to grab a Javascript code just like +1 button and paste it into my website page, add an iframe or something of this nature!
UPDATE:
Sounds like if I try to be convincing, I may be able to influence some decisions!
More details: Our website services offers login with Google using Google OAuth, This way the user is either logged in or is forced to login with Google to get access to private areas of our customer portal, where you can review the status of Support Tickets, submit new support tickets, have access to knowledge base, documents, blogs, etc.
We have incorporated all sort of social plugins into the blogs, product catalogs and so forth.
It would be fantastic is the users can have access to a community (Forum or Discussion Board) within the same place. Google Community seem to be the tool but in the wrong place.
No such widget exists at this time, but it's an interesting idea. If you want to share more details on precisely what you're looking for, you can file the issue here: https://code.google.com/p/google-plus-platform/. The more details you can provide, the more likely that, if we decide to implement this feature, we'll end up with something that you want.

how can I make an app the displays all permanent google+ hangouts and the people in them?

I'm completely new to using the Google+ apis and the quickstart guides are a bit confusing (i tried the ruby version since i'm probably most familiar there. looks like this: https://github.com/googleplus/gplus-quickstart-ruby)
and I've also looked at the google hangout apis - but those seem to be more for augmenting hangouts (i.e. once you're in a hangout, you'd see the extension, etc. you built).
what I'd like to do is create a place for everyone at my company to log in and see a list of all the permanent hangouts I've created and see who's currently joined that hangout (and which hangouts are available for a meeting).
I'm really sorry for the question but any help getting started is appreciated.
There is currently no API that is officially provided that can tell you what hangouts are currently available. If you are interested in seeing one, you may wish to see if the feature has been requested at https://code.google.com/p/google-plus-platform/issues/list and, if not, request it.
Your question, however, seems to have an assumption that I'm not entirely sure is valid. What do you mean by a "permanent hangout"? In general, hangouts are created and destroyed on an ad-hoc basis (although there are some exceptions).
One of those exceptions are for hangouts that are tied to calendar events (as you note). In these cases, you can use the Calendar API to get the Event resource and get the hangout URL from that (see https://developers.google.com/google-apps/calendar/v3/reference/events and related pages for the API), but it still won't report who is in a hangout at any given time.
One way you can approach what you're doing is to have your website have virtual meeting topics and when someone joins one of these topics, they run an app that reports back to your website the URL of the hangout they're in. Your website can then include this "room information" as associated with the topic on the website for others to see. This solution is outlined in the video at http://www.youtube.com/watch?v=Al4SbeVyLm4.