|
Showing posts with label Docs. Show all posts
Showing posts with label Docs. Show all posts
Retrieve Documents List from Google Docs using GData Java Client LibraryView CommentsYou can connect and retrieve data from any of the Google services by using Google API. Here we If you are using eclipse IDE for working with Java, then the steps of installation are more easy and that can be found in "Coding in the Shade". After successfully installing those libraries and contents. Now we can start developing our first and simple application to retrieve the document list from Google Docs. Now Create a java project and add the necessary External jars to project library. As we are going to develop a application to communicate with Google Docs add the "gdata-docs-3.0.jar" and "gdata-docs-meta-3.0.jar" in specific for this project. Download full Code here In the downloaded code you can find the import statements, which imports three important class to get feeds from Google Docs. First instance for the DocsSrevice class is created by passing the applications information as parameters to the constructor. And the users credentials such as username with domain name and corresponding password are set using the setUserCredentials() method. Then the getFeed() method of DocsService class is invoked, the url from which the feeds are to be obtained are passed as the argument. The feeds obtained by getFeed() is assigned to instance of DocumentListFeed. Each entry in the feed are extracted using the DocumentListEntry class. Then each documents information be obtained as follows: This is a initiation, you can process a lot more using those API. To get more information about working with Google Docs you can check the following links:
Subscribe to:
Posts (Atom)
About UsCategories
Followers |