Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jongotlin/productfeedadapter


https://github.com/jongotlin/productfeedadapter

Last synced: 2 months ago
JSON representation

Awesome Lists containing this project

README

        

Product Feed Adapter
====================

[![Build Status](https://secure.travis-ci.org/jongotlin/ProductFeedAdapter.png)](http://travis-ci.org/jongotlin/ProductFeedAdapter)

Use this adapter with any product feed from Adrecord, TradeDoubler, Zanox, Adtraction or Adsettings.

$feed = file_get_contents('http://feed.adrecord.com/foo.json?id=bar');
$productFeedAdapter = new ProductFeedAdapter($feed);
$network = $productFeedAdapter->getNetwork();
foreach ($network->getProducts(0, 10) as $product) {
echo $product->getTrackingUrl();
}