Skip to content

Instantly share code, notes, and snippets.

@ritou
Created September 26, 2009 16:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ritou/194309 to your computer and use it in GitHub Desktop.
Save ritou/194309 to your computer and use it in GitHub Desktop.
<?php
require('lib/YahooAbstractAPI.php');
/**
* ウォッチリストを取得するAPIのクラス
*/
class OpenWatchListApi extends YahooAbstractApi {
/**
* 1.APIのリクエストURL
*/
const REQUEST_URL = 'http://auctions.yahooapis.jp/AuctionWebService/V1/openWatchList';
/**
* 2.コンストラクタ
*/
public function __construct(YahooSession $session) {
parent::__construct($session);
}
/**
* 3.APIレスポンスを取得する
*/
public function getResponse( $parameters ) {
$this->httpGet( self::REQUEST_URL, $parameters );
return $this->getResponseBody();
}
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment