RainbowSixSiegeBridge fix url coding style error

This commit is contained in:
Corentin Garcia 2017-07-13 17:54:48 +02:00
parent fa85267f69
commit 014d0d470e

View File

@ -8,10 +8,10 @@ class RainbowSixSiegeBridge extends BridgeAbstract {
const DESCRIPTION = 'Latest articles from the Rainbow Six Siege blog';
public function collectData(){
$jsonString = getContents("https://prod-tridionservice.ubisoft.com/live/v1/News/Latest?templateId=tcm%3A152-7677" .
"8-32&pageIndex=0&pageSize=10&language=en-US&detailPageId=tcm%3A152-194572-64" .
"&keywordList=175426&siteId=undefined&useSeoFriendlyUrl=true")
or returnServerError('Error while downloading the website content');
$dlUrl = "https://prod-tridionservice.ubisoft.com/live/v1/News/Latest?templateId=tcm%3A152-7677";
$dlUrl .= "8-32&pageIndex=0&pageSize=10&language=en-US&detailPageId=tcm%3A152-194572-64";
$dlUrl .= "&keywordList=175426&siteId=undefined&useSeoFriendlyUrl=true";
$jsonString = getContents($dlUrl) or returnServerError('Error while downloading the website content');
$json = json_decode($jsonString, true);
$json = $json['items'];