Source for file AbstractAuction.php
Documentation is available at AbstractAuction.php
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
* LICENSE: This source file is subject to the New BSD license that is
* available through the world-wide-web at the following URI:
* http://www.opensource.org/licenses/bsd-license.php. If you did not receive
* a copy of the New BSD License and are unable to obtain it through the web,
* please send a note to license@php.net so we can mail you a copy immediately.
* @package Services_Yahoo_JP
* @author Tetsuya Nakase <phpizer@gmail.com>
* @copyright 2008 Tetsuya Nakase
* @license http://www.opensource.org/licenses/bsd-license.php BSD
* @version CVS: $Id: AbstractAuction.php,v 1.1 2008/04/28 15:59:30 tetsuya Exp $
* @link http://phpize.net
require_once 'Services/Yahoo/JP/Auction/Response.php';
require_once 'HTTP/Request.php';
* This abstract class serves as the base class for all different
* types of categories that available through Services_Yahoo.
* @package Services_Yahoo_JP
* @author Tetsuya Nakase <phpizer@gmail.com>
* @copyright 2008 Tetsuya Nakase
* @license http://www.opensource.org/licenses/bsd-license.php BSD
* @version Release: 0.0.1
* @link http://phpize.net
protected $parameters = array ('appid' => 'PEAR_Services_Y_JP');
* This method submits the auction and handles the response. It
* returns an instance of Services_Yahoo_Result which may be used
* to further make use of the result.
* @return object Services_Yahoo_Response Auction Tree result
* @throws Services_Yahoo_Exception
$url = $this->requestURL . '?';
foreach ($value as $value2) {
$url .= $key . '=' . urlencode($value2) . '&';
$url .= $key . '=' . urlencode($value) . '&';
$request = new HTTP_Request ($url);
$result = $request->sendRequest ();
if (PEAR ::isError ($result)) {
throw new Services_Yahoo_Exception ($result->getMessage ());
* Set Application ID for the Auction
* An Application ID is a string that uniquely identifies your
* application. Think of it as like a User-Agent string. If you
* have multiple applications, you should use a different ID for
* each one. You can register your ID and make sure nobody is
* already using your ID on Yahoo's Application ID registration
* The ID defaults to "PEAR_Services_Y_JP", but you are free to
* change it to whatever you want. Please note that the access
* to the Yahoo API is not limited via the Application ID but via
* the IP address of the host where the package is used.
* @param string $id Application
* Set the id to category for
* @param string $id to category for
* Set the page to auction
* @param string $page to auction
* Set the store to auction
* @param string $store to auction
* Set the escrow to auction
* Set the easypayment to auction
* Set the largeimg to auction
* Set the freeshipping to auction
* Set the wrappingicon to auction
* Set the buynow to auction
* Set the thumbnail to auction
* @param string $thumbnail to auction
* Set the attn to auction
* @param string $attn to auction
* Set the gift_icon to auction
* @param string $gift_icon to auction
* Set the sort to auction
* @param string $sort to auction
* Set the order to auction
* @param string $order to auction
* Set the sellerID to auction
* @param string $seller to auction
* Returns an element from the parameters
* @param string $name Name of the element
* @return string Value of the parameter idenfied by $name
Documentation generated on Fri, 19 Sep 2008 21:30:04 -0400 by phpDocumentor 1.4.0. PEAR Logo Copyright © PHP Group 2004.
|