Correction for issue #99

HumbleStoreDiscountBridge is now working, I changed the link to request Json data.
This commit is contained in:
16mhz 2014-12-10 13:09:08 +01:00
parent 11aeb8088a
commit c51fc40d17

View file

@ -14,7 +14,7 @@ class HumbleStoreDiscountBridge extends BridgeAbstract{
public function collectData(array $param){ public function collectData(array $param){
$result = file_get_html('https://www.humblebundle.com/store/api?request=2&page_size=20&sort=discount&page=0') $result = file_get_html('https://www.humblebundle.com/store/api/humblebundle?request=2&page_size=20&sort=discount&page=0')
or $this->returnError('Could not request the Humble Store.', 404); or $this->returnError('Could not request the Humble Store.', 404);
$string = json_decode($result, true); $string = json_decode($result, true);
$items = $string['results']; $items = $string['results'];