View Source

<ac:macro ac:name="info"><ac:parameter ac:name="title">New Proposal Template</ac:parameter></ac:macro>
<ac:macro ac:name="unmigrated-inline-wiki-markup"><ac:plain-text-body><![CDATA[{zone-template-instance:ZFPROP:Proposal Zone Template}
{zone-data:component-name}
Zend\Service\Buscape
{zone-data}

{zone-data:proposer-list}
[Theoziran Lima|mailto:theoziran@gmail.com]
{zone-data}

{zone-data:liaison}
TBD
{zone-data}

{zone-data:revision}
0.1 - 18 May 2011: Initial Draft.
{zone-data}

{zone-data:overview}
Zend_Service_Buscape aims to provide full access to the Buscape API. BuscaPé provide to find offers, products and sellers in many shops of Latin America.

{zone-data}

{zone-data:references}
* [BuscaPé Developer Reference|http://developer.buscape.com/en/]
{zone-data}

{zone-data:requirements}
* This component *will* implement all the full BuscaPé API
* This component should namespace the various API methods similar to BuscaPé' API documentation where appropriete
{zone-data}

{zone-data:dependencies}
* Zend\Exception
* Zend\Service
{zone-data}

{zone-data:operation}

{zone-data}

{zone-data:milestones}

* Milestone 1: Finish the proposal
* Milestone 2: Proposal review
* Milestone 3: Update proposal
* Milestone 4: Unit tests, work, and are checked into SVN.
* Milestone 5: Initial documentation exists.

{zone-data}

{zone-data:class-list}
* Zend\Service\Buscape\Exception
* Zend\Service\Buscape\Find\Product
* Zend\Service\Buscape\Find\Offer
* Zend\Service\Buscape\Find\Seller
* Zend\Service\Buscape\Find\Rating
{zone-data}

{zone-data:use-cases}
{composition-setup}
{deck:id=use_cases}
{card:label=UC 1: Find list of products}
{code:type=php}
<?php
use \Zend\Service\Buscape;
$service = new Buscape(array('token' => 'XYZ'));
$finder = $service->getFinder(Buscape::FIND_PRODUCT);
$productList = $finder->search('TV');
{code}
{card}
{card:label=UC 2: Find list of offers}
{code:type=php}
<?php
use \Zend\Service\Buscape;
$service = new Buscape(array('token' => 'XYZ'));
$finder = $service->getFinder(Buscape::FIND_PRODUCT);
$productList = $finder->search('TV');
$offerFinder = $service->getFinder(Buscape::FIND_OFFER);
$offerLists = array();
foreach($productList as $product)
$offerLists[] = $offerFinder->search($product);
{code}
{card}
{deck}
{zone-data}

{zone-data:skeletons}
{code}
namespace Zend\Service\Buscape;
class Exception extends \Zend\Exception {}
{code}
{code}
namespace Zend\Service;
class Buscape extends Abstract{
const FIND_PRODUCT = 1;
const FIND_OFFER = 2;
public function __construct(array $options = array()){}

public function setToken($token){}

public function getToken($token){}

}

$buscapeService = new Zend\Service\Buscape(array('token' => 'XYZ'));
{code}
{zone-data}

{zone-template-instance}]]></ac:plain-text-body></ac:macro>