NAME

eBay::API::Simple - Simple version of the eBay API supporting all APIs

DESCRIPTION

This is the base class for the eBay::API::Simple::* libraries.

eBay::API::Simple::Shopping eBay::API::Simple::Trading eBay::API::Simple::HTML eBay::API::Simple::RSS

SOURCE

http://code.google.com/p/ebay-api-simple

METHODS

eBay::API::Simple::{subclass}->new()

see subclass for more docs.

execute( $verb, $call_data )

** This method should be supplied by the subclass. This one is only here to provide an example. See actual subclass for docs.

Calling this method will make build and execute the api request.

required: $verb = call verb, i.e. FindItems $call_data = hashref of call_data that will be turned into xml.

response_content

Accessor for the HTTP response body content

request_agent

Accessor for the HTTP request agent

request_object

Accessor for the HTTP request object

request_content

Accessor for the HTTP request body content

response_object

Accessor for the HTTP response body content

response_dom

Accessor for the LibXML response DOM

response_hash

Accessor for the hashified response content

response_json

Not implemented yet.

api_config

Accessor to a hashref of api config data that will be used to execute the api call.

siteid,domain,uri,etc.

api_config_append( $hashref )

This method is used to merge config into the config_api hash

errors

Accessor to the hashref of errors

has_error

Returns true if the call contains errors

errors_append

This method lets you append errors to the errors stack

errors_as_string

Returns a string of API errors if there are any.

nodeContent( $tag, [ $dom ] )

Helper for LibXML that retrieves node content

optionally a DOM object can be passed in. If no DOM object is passed then the main response DOM object is used.

_execute_http_request

This method performs the http request and should be used by each subclass.

_reset

Upon execute() we need to undef any data from a previous call. This method will clear all call data and is usually done before each execute

_get_request_body

The request body should be provided by the subclass

_get_request_headers

The request headers should be provided by the subclass

_get_request_agent

The request request agent should be used by all subclasses

_get_request_object

The request object should be provided by the subclass

AUTHOR

Tim Keefer <tim@timkeefer.com>