Hi,
first of all: thank you for your class! I'll try to implement a TYPO3
Extension to show google analytics stats in TYPO3 Backend based on
your class. I'll let you know, if it is finished.
I found a bug if you use the class without curl. The problem is, that
file_get_contents() needs another format for 'content' than curl. So
I
added a new line (382) to adapted the $aContext array to work with
file_get_contents:
381 // Curl is not installed, use file_get_contents
382 $sContent = 'accountType='.$sContent
['accountType'].'&Email='.$sContent['Email'].'&Passwd='.$sContent
['Passwd'].'&service='.$sContent['service'].'&source='.$sContent
['source'];
383 // create headers and post
384 $aContext = array('http' => array ( 'method' =>
$sMethod,
385 'header'=> implode
("\r\n", $aHeader) . "\r\n",
386 'content' =>
$sContent));
387 $rContext = stream_context_create($aContext);
388
389 $sOutput = @file_get_contents($sUrl, 0, $rContext);
with this modifications the authentication works for me without curl.
Cheers
Christian
On Apr 25, 1:46 pm, Vincent Kleijnendorst wrote: