Spreadsheet Toolkit

corpus.gobbler
Class GoogleAPI

java.lang.Object
  |
  +--corpus.gobbler.GoogleAPI

public class GoogleAPI
extends java.lang.Object

The GoogleAPIDemo is a demonstration of using the Google Web APIs for search and fetching pages from the cache. I've added proxy authentication using a patch(below).

See Also:
GoogleSearch, GoogleSearchResult, [GWAPI], Patch For Google APIs to Handle Proxy Settings

Constructor Summary
GoogleAPI(java.lang.String clientKey, java.lang.String directive, java.lang.String directiveArg)
           
 
Method Summary
 void doSearch(int start)
           
 java.lang.String getClientKey()
           
 int getEstimatedTotalResultsCount()
           
static void main(java.lang.String[] args)
          Demonstration program to call the Google Web APIs service.
 void newSearchQuery(java.lang.String directiveArg)
           
 java.lang.String[] resultsToArray()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GoogleAPI

public GoogleAPI(java.lang.String clientKey,
                 java.lang.String directive,
                 java.lang.String directiveArg)
Method Detail

doSearch

public void doSearch(int start)

resultsToArray

public java.lang.String[] resultsToArray()

newSearchQuery

public void newSearchQuery(java.lang.String directiveArg)

getEstimatedTotalResultsCount

public int getEstimatedTotalResultsCount()

getClientKey

public java.lang.String getClientKey()

main

public static void main(java.lang.String[] args)
Demonstration program to call the Google Web APIs service. Usage:
java com.google.soap.search.GoogleAPIDemo [key] search Foo
java com.google.soap.search.GoogleAPIDemo [key] cached http://www.google.com/ java com.google.soap.search.GoogleAPIDemo [key] spell "britnay spars"


Spreadsheet Toolkit

Project Home Page