Ladies and Gentleman did you ever thought to use you old ABAP system to use modern cloud services?
Last year SAP Mentor Uwe Fetzer (@se38) published his Twibap, a simple Twitter API to use in order to read and post Tweets on Twitter, today I will present you abap2gapps an API prototype in order to interact basically with all Google services that use new OAuth2 authentication.
abap2gapps uses API provided by another Code Exchange project, that we release today, OAuth2.
Wait a moment, what is OAuth2?
You can’t answer the question; you should read this blog OAuth2: Next generation authentication API
abap2gapps gives you a very easy framework to communicate and operate with Google services. This version allows you to use only Google Spreadsheet service and to perform only 2 actions: request spreadsheets list and create a new spreadsheet on Google document uploading a file from an ABAP system.
Consider this Google Document folder, it shows 2 spreadsheets
Using abap2gapps I’m capable to retrieve the spreadsheet file list directily from an abap system
The next question is: “How much is my effort to create such kind of report?”
As always we want to make developer life easy and provide you the easiest APIs, try to have a look at the code extract below
Only 2 methods call and abap2gapps will do the dirty work: authenticate on Google, make the request on Google documents, parse the request and give you back the result. Easy enought?
We want more, let’s try to upload a file on Google Document…
Whaaaat?! 2 methods call, nothing else? Yes, abap2gapps is designed to make developers life something incredible.
As the code is released on Code Exchange community is encouraged to join in the project and provide new features and also integration with different Google services like Calendar, Google storage and so on.
Code, installation and configuration instructions will be released in the next days on Code Exchange abap2gapps page.