Google Demo  Locate

Overview  Locate

This demo shows how the client can use Google Web APIs to search the web. For more information about Google Web APIs, please refer to http://www.google.com/apis/.

What You Will Learn  Locate

Demo Package Description  Locate

In addition to the files described in Files and Directories, this demo contains:

File or directoryDescription
wsdl/

Locally stored WSDL file describing Google Web APIs

Prerequisites and Preparatory Steps  Locate

Creating a Google Account  Locate

To access the Google Web APIs service, you must create a Google Account and obtain a license key. Your Google Account and license key entitle you to 1,000 automated queries per day. You can create the account here: https://www.google.com/accounts/NewAccount

Pattern, Class, and Code Discussion  Locate

src/demo/basic/google/client/GoogleClient.java - implementation of the client for Google Web APIs

Building and Running Demos  Locate

You can run the demo using the "run.sh" (for UNIX) or "run.bat" (for Windows) scripts. Running the script without arguments prints out a help message on screen.

  1. Be sure that you have not started SESJ.

  2. Compile the client.

    Linux:   ./run.sh make_client
    Windows: run.bat make_client
    
  3. Run the client.

    Linux:   ./run.sh run_client <google_license_key> <query_string>
    Windows: run.bat run_client <google_license_key>> <query_string>