Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 728
  • Last Modified:

Java Sample Code for Interfacing with Google Blogger API 3.0

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
iamkhova
Asked:
iamkhova
  • 2
1 Solution
 
mccarlIT Business Systems Analyst / Software DeveloperCommented:
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
 
iamkhovaAuthor Commented:
MCCarl,

Thanks. I will take it a step back and focus on the OAuth2 portion and the Plus example.
0
 
mccarlIT Business Systems Analyst / Software DeveloperCommented:
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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now