Simple app that creates RSS feed using Allegro REST API.
Enter your API credentials into /src/Service/ApiService.php.dist
and rename the file to /src/Service/ApiService.php
.
- Go to
rss.php
, get redirected to Allegro, allow app to use your account. - You'll get redirected to
rss.php?code=...
, your tokens will get stored and you'll get assigned a permanent user token (Your user token is ...
). - Now you can use your user token to create RSS feeds, passing it as
user_token
(examples below).
Offers for "ford mustang" phrase:
rss.php?user_token=...&phrase=ford+mustang
Offers for "sukienka" phrase, "Sukienki" category (124264), with parameter.11323=2
(stan używany):
rss.php?user_token=...&phrase=sukienka&category.id=124264¶meter.11323=2
GET parameters are directly passed to API, so it's possible to use every possible parameter (read more about them here and here). Currently there are two default parameters set (which can be overriden anyway) - limit
(60
) and sort
(-startTime
).
- You will most likely want to write your own
StorageServiceInterface
implementation (current one is super simple, uses text file and doesn't even support multiple users; I don't feel like writing anything fancier at the moment). - Allegro REST RSS uses php-allegro-rest-api, which has certain flaws, mainly:
- Doesn't let you set multiple values for a single filter (issue)
- REST API allows you to get a maximum of 100 latest offers, but unfortunately it prioritizes promoted offers. Therefore, if there's more than 100 (or whatever the limit is set) promoted offers, no regular offers will be shown, making RSS feed useless for most purposes.