Welcome Guest, Not a member yet? Register   Sign In
[Resolved] Is CI's XML-RPC class the solution for this problem?
#9

[eluser]pistolPete[/eluser]
Code:
$ch = curl_init('http://isbndb.com/api/books.xml?access_key=YS5KDLE8&results=details&index1=isbn&value1=9780596529963');
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$response = curl_exec($ch);      
curl_close($ch);

$xml = simplexml_load_string($response);
$bookdata = $xml->BookList->BookData;

echo '<pre>'.print_r($bookdata, TRUE).'</pre>';


There are also several cURL wrapper classes which you could use:
- http://github.com/shuber/curl/tree/master
- http://codeigniter.com/wiki/Curl_library/


Messages In This Thread
[Resolved] Is CI's XML-RPC class the solution for this problem? - by El Forum - 03-15-2009, 12:31 PM



Theme © iAndrew 2016 - Forum software by © MyBB