Import google plus friend list using php - google-plus

Could any one give me suggestion on how to get friend list on google plus using PHP.
Is there any plugin or widget to do this.It would be great to know.
Thanks in advance.

Your user needs to grant your app access to this information via the OAuth 2.0 scope https://www.googleapis.com/auth/plus.login and then you can use the REST API or client libraries to get the list of friends.
See the Google+ PHP quickstart for a sample application that accomplishes all of the steps necessary for what you want to do. The sample uses the Symfony framework to keep the code concise, but you should be able to take away how to do the same in your own PHP environment.
Also, see the Google APIs PHP client library that you can use in your project. This library is embedded in the quickstart via composer.

Related

Google Photos REST API with Angular/Java/dotNet

I am trying to connect to google photo in angular and been searching since last two days about google photos REST api but couldn't find any useful example.
Could somebody help me with this on how to use google photos api in angular. an example would be great if I get it working I will creating sample and put it on github or others to look at.
Another thing I am trying is to connect api without any user interaction. I have tried playgrounds but its prompting to authorize access as well. Idea is to build ionic app that can connect to my google photos without needing me to authenticate access to it with my id and secret.
my app would be in angular(ionic) or java(android) so would prefer example (if any) in those platform but ok with dotnet or php as well. Won't be able to use library in dotnet or php.
Thanks
Bhavesh

Building a Custom API on top of Parse.com?

I'm planning on building a developer API similar to what Uber and Yo have done. Is it possible to build such API if my app's backend is powered by parse.com? I don't want my custom API pointing to parse, but instead my own site.
I'm planning on using ruby, and was wondering if there would be any limitations over other options (not sure what options I have). Thanks
I'm not sure if it is possible using ruby, but I know it's definitely possible to build your own REST API.
We have decided to go a bit further and wrote a parse-angular seed project for developing web apps. It can be found here.
After you pulled it, do a npm install
As usual,
cloud code should go into cloud/main.js
express code: cloud/app.js
angular code: cloud/public/js/
Note that: You will need to change your AppId and AppKey in
config/global.json
cloud/public/js/app.js
As for custom apis, you can define your own in cloud/routes/api.js.
At this point you should have a nice parse-angular project set up and good to go.
If there's anything wrong, please feel free to open a pull request. :)

laravel 4 social with simple auth wrapper

I start using laravel (ver 4) and I got to the point I need to use authentication on my website.
I tried to find package that will allow me to wrap the all idea of "standard" / simple authentication and the social one (like facebook, google+ and etc..).
I found ion_auth and with some extensions it's allow me to use one authentication library for all kind of users - but it only works in codeigniter framework.
After a lot of research I couldn't find any ready package that allows me what I'm looking for, Does anyone familiar with such library or had this kind of issue and can tell me how he handle it?
This is a paid library, but it works pretty well. https://cartalyst.com/manual/sentry-social
i had a good experience using artdarek/oauth-4-laravel. it also has got a nice set of examples for using with different login providers.

Dropbox - any API to cli_link?

I'm using the dropboxd service under Linux, which requires you to log into their website e.g. https://www.dropbox.com/cli_link?host_id=2173bf325f94beee3b1879d2c7b49e69 to link the machine to your account.
Is there any programatic way to do this (ideally using Java)? To access the website above it seems you need to login using forms (which seems tricky to do programatically), and their basic REST API (https://www.dropbox.com/developers/core/docs) doesnt seem to cover the cli_link command.
I could write an app to do the sync using their full API, but it seems like overkill since aside from the cli_link requirement the basic dropboxd does all that I need.
The official Dropbox desktop client is unrelated to the API, though both the API and the Linux CLI require user interaction on the Dropbox web site (once per link) to authorize the linking. Also, note that automating/scraping the site itself is not allowed by the terms:
https://www.dropbox.com/terms#acceptable_use
Not really a solution for DropBox users, but in the end we just moved over to use MediaFire instead. That has a full REST API and doesnt require any manual intervention.

Google Plus API Nuget Package

I need to create posts, etc through my ASP.NET MVC 4 application.
Does anyone know decent library for Google Plus API? (Preferable as a NuGet package).
There is currently no publicly documented API that lets you automatically post to your Google+ page or stream.
There is an API that HootSuite is currently using that is slowly opening up to other vendors. See https://plus.google.com/u/0/104946722942277428266/posts/LUi2ZNyRHag for more information about what is coming and how you can sign up to request access to this. This is expected to allow you to post to a Google+ Page.
There is also the "Google+ History API" that is currently in developer preview which will allow you to create moments for a user, but they would need to manually share these moments on their stream if they choose to do so. See https://developers.google.com/+/history/ for further details.