Google Glass - Share Images - php

I'm developing a "sharing" app for Google Glass using the Mirror API.
Basically, I want there to be another share option on the images and videos. Instead of just the default "Share to Google Plus," there will also be "Share to (Server)," which will ping a file (upload.php) on the server to upload the image/video.
From the documentation I can tell I need to use contacts to "subscribe" to the share events.
Could someone point me to a doc that explains how this can be done? I know it is possible because apps like YouTube and Facebook already achieve this.

Here's an example in various languages, including php:
https://developers.google.com/glass/v1/reference/contacts/insert#examples
You may also want to play around with the Quickstart demo app (which can also be downloaded on GitHub):
https://developers.google.com/glass/develop/mirror/quickstart/php
The Quickstart is a working demo that showcases the Contacts, Subscribe, and Timeline capabilities of the Mirror API.

Related

Automate posts in Google+ page through PHP/REST API

I am working on web application which will help to schedule the post in social sites like facebook, twitter and google plus. As far as I researched in the internet, it seems Google is not providing any api for writing streams neither at Personal profile nor at Google Pages. And it has provided the api access only to limited apps like hootsuite, buffer.
My question is, Is there any third party (even paid) APIs which will provide me this functionality ? Or, by any chance is it possible to request google for api access similar to the one, it provided for apps like hootsuite,buffer ?
The Buffer API does allow you to schedule tweets automatically. It doesn't seem to support programmatically scheduling updates for other social media platforms, which is what I'm currently trying to do.

YouTube v3 Authentication and Google+

I'd like to implement YouTube OAuth 2.0 on my application. I'd also like the user to have access to Google+ features at the same time.
Can someone (maybe even someone from the YouTube API team) tell me if I am reading the content on this link correctly?
https://developers.google.com/youtube/v3/guides/authentication
It looks like if I implement one of the recommended client libraries (thinking of implementing the one called "Google APIs Client Library for PHP"), the user will also have access to Google+ social network features.
Is this correct? I want to make sure I'm seeing this right before I go through the trouble.
Yes, the PHP client library supports all of Google's REST APIs including YouTube and Google+. Make sure you get the latest one and keep it updated.

adding google analytics into a php dashboard

Hi I have a website that I am creating at the moment I have just created a dashboard for admin users I was wondering is there a way I can embed a Google analytic's dashboard or the elements of the dashboard into my own website.
My initial thought would be an i frame of the web page and then getting the user to sign in
I have looked at different questions surrounding this and people are being told to look at the Developer Guides and the implementing the API into their site, Can I do this ??
My website is PHP based with some HTML I am not sure if I am using a framework that the analytics can be implemented into because at the moment I'm currently using bootstrap for the admin dashboard the rest I have hand coded.
Any guides any examples of people doing this themselves that would be much appreciated.
I would recommend you look into using the Google Analtyics API with a service account. You will only be logging into your own data so there is no need to go though the full Oauth2.
The most current version of the Google PHP client lib can be found here on github under examples you want to look into the service-account.php it should show you how to get working with a service account.
Note: Unfortunately the hello analytics tutorial is out of date and uses the old client lib, don't go there. I have been told they are working on an update for it.

Is PHP required for Facebook apps?

I have written a small web app with GWT and am looking into what it will take to make a "clone" of it on Facebook (as a FB app). After spending some time reading the dev docs it looks like a Facebook App is just a vanity canvas that points to another URL under the hood (via iframe).
All of the FB dev docs keep re-emphasizing PHP-centric development. Not that I have anything against PHP (!), it's just that I'd like to be able to point the FB app at my (existing) web app main screen and not have to re-write any code.
So... my question boils down to this: can I just iframe the FB app's canvas to my existing web app or do I have to totally re-write my app in PHP? Thanks in advance!
Like you said, it's just an IFrame, Facebook doesn't know what language you use. So you can use anything, although it has to support certain things like URL parameters.
The reason for the PHP documentation is because there is an an official PHP SDK, but no others in that area (There is a JS and smart phone SDK too), all other SDKs are third party.

Google Docs Embed on PHP Site

I've been reading through Google Docs API and having some trouble. I want to do the following:
Embed a Google Doc in my web application
Anyone who can access that page in the web app can edit the Google Doc, without having to sign in to their Google account
(If Possible) Show who made which changes using their identities in my web app, not their Google account.
There are a few ways you can embed. A quick Google search will yield several answers.
As far as I know, it's not possible to edit without signing into an account.
As this is related to (2), I don't think this is possible as all.

Categories