Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jongotlin/productfeedadapter
https://github.com/jongotlin/productfeedadapter
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/jongotlin/productfeedadapter
- Owner: jongotlin
- License: mit
- Created: 2012-06-25T18:37:00.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2016-11-16T20:34:50.000Z (about 8 years ago)
- Last Synced: 2024-10-11T13:13:10.447Z (3 months ago)
- Language: PHP
- Size: 24.4 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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();
}