Jump to content
xisto Community
Sign in to follow this  
boyCradle

Google Web APIs (beta)

Recommended Posts

Mick, that is asking too much from a newbie!

Be kind and explain what each of your choices are!

 

I know you are kind, but don't flabbergast people like this, man. ooh!

Googlue!

Share this post


Link to post
Share on other sites

ok here we go:

 

Registration and key

--------------------

In order to use Google Web APIs you first must register with Google to

receive an authentication key. You can do this online at

http://code.google.com/.

Your key will have a limit on the number of requests a day that you

can make. The default limit is 1000 queries per day. If you have

problems with your key or getting the correct the daily quota of

queries, plase contact <api-support@google.com>.

 

How to use the Java API

-----------------------

 

To quickly try the API, run

java -cp googleapi.jar com.google.soap.search.GoogleAPIDemo <key> search Foo

Where <key> is your registration key and Foo is the item you wish to

search for. GoogleAPIDemo is a simple demonstration of how to use the

Java API included in googleapi.jar. For usage, run it with no arguments:

java -cp googleapi.jar com.google.soap.search.GoogleAPIDemo

GoogleAPIDemo is only a demonstration; Java programmers should look at

the source for GoogleAPIDemo and the included Javadoc for the

GoogleSearch class to learn more about how to use our Java library.

The library has our SOAP endpoint address built in. You may want to

override this endpoint, for instance to point it at a debugging proxy.

You can do this either by calling the appropriate method in

GoogleSearch or by setting the Java property "google.soapEndpointURL".

The default URL is http://forums.xisto.com/no_longer_exists/

 

How to use the .NET Examples

----------------------------

We have provided example programs that call the Google Web APIs

service from .NET. In the dotnet directory you will find files for

these examples, including

CSharp Example.exe and VB Example.exe

Pre-built executables, requires .NET Framework installed on your machine

 

CSharp\Form1.cs

Simple GUI program in C# that calls the API

CSharp\Google Web APIs Demo.csproj

Project file for the API demo; open in Visual Studio .NET

Visual Basic\Google Demo Form.vb

Simple GUI program in VB that calls the API

Visual Basic\VB Google Web APIs.vbproj

Project file for the API demo; open in Visual Studio .NET

 

To browse the code, simply look at the end of the Form code for the

methods at the end that handle clicks on the buttons. The Visual Basic

and C# examples are functionally identical.

 

How to use the WSDL File

------------------------

 

The WSDL file provides a standard description of Google's search

services. The file is included with this kit, and is also at

http://forums.xisto.com/no_longer_exists/

 

Many programming languages now understand WSDL and can use this file

to automatically invoke Google's API. For example, the WSDL can be

imported into .NET, converted into Java code using Apache Axis

WSDL2Java, or used directly by Perl SOAP::Lite. The WSDL file has been

tested with SOAP::Lite 0.52, the .NET Framework, (via "Add Web

Reference" or wsdl.exe version 1.0.3705.0), and Apache Axis Beta 1.

Below is a simple Perl script to use the WSDL file to do a query:

use SOAP::Lite;

my $key='000000000000000000000000';

my $query="foo";

my $googleSearch = SOAP::Lite -> service("file:GoogleSearch.wsdl");

my $result = $googleSearch -> doGoogleSearch($key, $query, 0, 10, "false", "", "false", "", "latin1", "latin1");

print "About $result->{'estimatedTotalResultsCount'} results.\n";

 

 

Contents of this package:

=========================

googleapi.jar

Java library for accessing the Google Web APIs service.

GoogleAPIDemo.java

Example program that uses googleapi.jar.

dotnet/

Example .NET programs that uses Google Web APIs.

 

LICENSE

Terms of use for the API.

APIs_Reference.html

Reference doc for the API. Describes semantics of all calls and fields.

javadoc/

Documentation for the example Java libraries.

licenses/

Licenses for Java code that is redistributed in this package.

GoogleSearch.wsdl

WSDL description for Google SOAP API.

soap-samples/

Example SOAP messages and responses.

 

googleapi.jar contents

======================

 

com.google.soap.search.*;

Google's own Java wrapper for the API SOAP calls

JAF 1.0.1 (activation.jar)

http://www.oracle.com/technetwork/java/index.html

Javamail API (mailapi.jar)

http://www.oracle.com/technetwork/java/index.html

Apache SOAP 2.2 (apache-soap-22.jar)

http://axis.apache.org/axis/

Apache Crimson 1.1.3 (crimson.jar)

http://xml.apache.org/crimson/

See the "licenses" subdirectory for licensing details of all third

party software. This product includes software developed by the Apache

Software Foundation (http://www.apache.org/).

Need any more help lol?

Mick

Share this post


Link to post
Share on other sites

i don't know anything about programming so i really don't know how this thing work. i'm not actually asking for help i just posted the link in case it can be used by another member from this forum. :-)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.