Can someone help me out on this. I have a problem with the return results from an google-api call
Ben html olarak onları geri yankı istiyorum, ama firefox bir besleme sayfasını görüntüleyen tutar.
In IE, I get an error saying that an xml document can only contain one toplevel element wich must be the atom "feed" element, so I don't get that.
Ben bu konuda geliştirmek için ne yapabilirim?
$response= curl_exec($ch);
curl_close($ch);
// Parse the response
$response= simplexml_load_string($response);
foreach($response->entry as $position)
{
echo "position: " . $position->title . "<br />";
/ / Sonraki stockvalue olurdu, ama ben henüz nasıl bilmiyorum
}
edit
$headers = array(
"Authorization: GoogleLogin auth=" . $auth,
"GData-Version: 2",
);
$ch=curl_init();
curl_setopt($ch, CURLOPT_URL, "http://finance.google.com/finance/feeds/default/portfolios/1/positions");
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
edit I saw my mistake I did not use
curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
teşekkürler, Richard