Sunday, May 25, 2014

Spring Social Google 1.0.0 Reaches General Availability

I am happy to announce the release of Spring Social Google 1.0.0.RELEASE ! I would like to thank everyone who contributed by testing and submitting issues and pull requests.

Spring Social Google contains bindings to Google Plus, Google Tasks and Google Drive APIs, and allows you to use any Java client library for any Google API while using Spring Social for authentication and connection management.

Project on GitHub: https://github.com/GabiAxel/spring-social-google

Distribution bundle: https://github.com/GabiAxel/spring-social-google/releases/tag/1.0.0.RELEASE

Reference manual: http://gabiaxel.github.io/spring-social-google-reference/

JavaDoc: http://gabiaxel.github.io/spring-social-google-javadoc/

Example application: https://github.com/GabiAxel/spring-social-google-example

To use with Maven add the following code to your POM:
<dependency>
   <groupId>org.springframework.social</groupId>
   <artifactId>spring-social-google</artifactId>
   <version>1.0.0.RELEASE</version>
</dependency>

Creating a Google Cloud Project and Using it with Spring Social Google


Navigate to https://console.developers.google.com/project

Click "Create Project" and enter a name and ID for the project.

Enter the project and in the left menu select "APIs & Auth". In "APIs" activate the APIs you want to use in the application. The example application uses Google+ API and Tasks API.

In the left menu go to "Credentials" and click "Create new client ID". For "Application Type" choose "Web Application" and for "Authorized Redirect URI" enter "http://localhost:8080/signin/google".

The new set of credentials will be added. Note the "Cliend ID" and "Client Secret" values - we will use them when running the example application.

Get the example application from GitHub:
git clone git://github.com/GabiAxel/spring-social-google-example.git

Enter the application directory and run it with Tomcat (replace CLIENT_ID and CLIENT_SECRET with the values you saw in Google Developers Console):
cd spring-social-google-example
mvn tomcat7:run \
   -Dgoogle.clientId=CLIENT_ID \
   -Dgoogle.clientSecret=CLIENT_SECRET

The application will run at http://localhost:8080/

The Road Ahead


There is no shortage of Google APIs. My current though is to proceed to YouTube and Calendar, but I really want to know what you want, so please submit your requests and issues in the GitHub project.

Enjoy using Spring Social Google!

27 comments:

  1. Hi, I encounter a question described here: http://stackoverflow.com/questions/19499827/how-to-add-google-oauthspring-social-google-to-the-existing-spring-project-usi
    Could you check about it.

    ReplyDelete
  2. Great work Gabriel, Thank you!

    ReplyDelete
  3. Hi Gabriel, Thanks for the great framework. The unfortunate part is I am unable to integrate your code into my existing Spring-MVC project. I am only looking for Google+ login. I tried Scribe but without success. What I require is I call a method in the Controller, which redirects the user to Google page, and then once the user authorizes, I have basic information like Email, Profile Photo in the backend. Next time the user should be able to click it again and Login, if not then the user will be registered with that account. I dont have any main class, and have mostly XML based configuration. Your project is vast to extract specifically what I want and use, pheraps you can help me filter out to what I need. Thanks a lot. Please feel free to email me at kernelfreak[at]gmail.com. Thanks.

    ReplyDelete
  4. If all you need is Google+ sign in, I recommend doing it like so: https://developers.google.com/identity/sign-in/web/

    Spring Social Google and similar libraries are suitable when you need to work with the Google APIs on the server side.

    ReplyDelete
    Replies
    1. Is there any way I can do this in Java, I might require some API's in future. Thanks.

      Delete
    2. Then you should refer to the official Spring Social documentation. Though it doesn't contain examples with Google, you should get the idea. Also take a look at the example application with Google here: https://github.com/GabiAxel/spring-social-google-example

      Delete
  5. how to share messages in google plus using spring social?

    ReplyDelete
  6. Hello I am so delighted I located your blog, I really located you by mistake, while I was watching on google for something else, Anyways I am here now and could just like to say thank for a tremendous post and a all round entertaining website. Please do keep up the great work. im academy trading reviews

    ReplyDelete
  7. Use a professional headshot for the photo. Get a pal with a good camera or choose professional headshot. People viewing your profile can make an instantaneous decision on the basis of the quality and professionalism of one's photo. Your investment funny, silly shots. Don't think you'll need a photo? Think again! People will not trust you and your effectiveness is going to be cut to a portion you're your profile doesn't add a photograph. Kennected LinkedIn Reviews

    ReplyDelete
  8. You delivered such an impressive piece to read, giving every subject enlightenment for us to gain information. Thanks for sharing such information with us due to which my several concepts have been cleared. Mark Lutchman

    ReplyDelete
  9. This is such a great resource that you are providing and you give it away for free. stephen twomey

    ReplyDelete
  10. A very delightful article that you have shared here. Your blog is a valuable and engaging article for us, and also I will share it with my companions who need this info. Thankful to you for sharing an article like this. best smm panel

    ReplyDelete
  11. You have given great content here. I am glad to discover this post as I found lots of valuable data in your article. Thanks for sharing an article like this.Smm Panel provider

    ReplyDelete
  12. Which is the cheapest SMM panel?
    Apnismm

    World Cheapest SMM Panel

    Apnismm is India's Best & Cheapest SMM panel. Apnismm is the best social media marketing panel for sellers as well as individuals. They are dealing with Tiktok, Facebook, Instagram, Twitter, Youtube, and SoundCloud services. Apnismm is the best cheapest panel in India.

    ReplyDelete
  13. I appreciate your efforts which you have put into this article. This post provides a good idea about buy youtube watchtime Genuinely, it is a useful article to increase our knowledge. Thanks for sharing such articles here. Cheapest SMM Panel For Reseller 

    ReplyDelete
  14. You wrote this post with great care and attention to detail regarding this issue. Your article provided me with useful information about buy youtube subscribers.It's quite beneficial to me as well as others. Thank you for continuing to share this type of information.

    ReplyDelete
  15. Is it legal to have an offshore bank account?
    There's nothing illegal about establishing an offshore account unless you do it with the intent of tax evasion. The Foreign Account Tax Compliance Act (FATCA) requires banks around the world to report balances and any activity of American citizens to the IRS or face fines.
    More Details

    ReplyDelete
  16. Mostly I do not comment on any post about smm panel , but your blog has lots of knowledge. It's forcing me to do this. It has really amazing content. Please share more information with us. Cheapest SMM Panel India

    ReplyDelete
  17. Wow! Such an amazing and helpful post this is. I really really love it. It's so good and so awesome. I am just amazed. I hope that you continue to do your work like this in the future also smm panel india

    ReplyDelete
  18. You have worked nicely with your insights that makes our work easy. The information you have provided is really factual and significant for us. Keep sharing these types of article, Thank you. buy google reviews fiverr

    ReplyDelete
  19. This is a smart blog. I mean it. You have excellent knowledge of smm panel Thanks for sharing such great blogs with us.

    ReplyDelete
  20. You wrote this post very carefully about this topic. I got information from your article it is really useful for me and also for others. Keep sharing this type of info, Thank you. best smm panel india

    ReplyDelete
  21. Well written articles like yours renews my faith in today’s writers. You’ve written information I can finally agree on and use. Thank you for sharing smm panel india

    ReplyDelete
  22. The content you've posted here is fantastic because it provides some excellent information that will be quite beneficial to me. Thank you for sharing that. Keep up the good work. instant views

    ReplyDelete
  23. Hello companion, it is very elegantly composed article, thank you for the important and helpful data you give here. Keep doing awesome!

    IT Managed Support Services Hong Kong

    ReplyDelete
  24. Thank you for your post. I sincerely thank you for your post. If you are interested in purchasing our products, you can contact us through this website.

    research chemicals sales

    ReplyDelete