Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Java Sample Code for Interfacing with Google Blogger API 3.0

Posted on 2013-11-21
3
Medium Priority
?
707 Views
Last Modified: 2013-11-23
I'm trying to understand how to use the google blogger api in my project. I'm looking to see how to implement the key credentials and then do a test post command via the api in Java.  

I could not find any coding examples on the 3.0 version and looking for any guidance to help me wrap my head around it.

The API Link
https://developers.google.com/blogger/docs/3.0/api-lib/java

Much thanks,
0
Comment
Question by:iamkhova
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 36

Accepted Solution

by:
mccarl earned 2000 total points
ID: 39668113
I'm looking to see how to implement the key credentials
By that do you mean you are looking how to authenticate with Google? If so, you need to look into OAuth as this is what is used for all Google API's not just Blogger. Also, the exact method used to authenticate depends on what type of application you are developing. If you are just writing a simple console/GUI type application, ie. one that runs on client side rather than a web app type of thing, you will probably want to look at this variation of OAuth...

https://developers.google.com/accounts/docs/OAuth2InstalledApp

Once you have a feeling for how the authentication scheme works, have a look at some of the sample code that Google have. This link is to a basic application that uses the Google+ API but the authentication side is almost identical between the different API's so start with this and then make small modifications to use the Blogger API instead of Google+.

https://code.google.com/p/google-api-java-client/source/browse/?repo=samples#hg%2Fplus-cmdline-sample



Unfortunately, I don't think there is any ready to run, complete Blogger examples for Java, but hopefully the above is enough information to get you much closer to acheiving your goal.

And by all means, if you have any issues with getting the above going, let us know and we should be able to help further.
0
 

Author Closing Comment

by:iamkhova
ID: 39669561
MCCarl,

Thanks. I will take it a step back and focus on the OAuth2 portion and the Plus example.
0
 
LVL 36

Expert Comment

by:mccarl
ID: 39670994
No worries! Yeah, that is probably a good idea seeing that that is were the ready made samples are at. And the OAuth part is probably going to be the most complex part, I'd say. You have to have the right code and you also have had to setup your account the right way, etc. Once you have that going, it should be easy to apply that to the Blogger API.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question