These forums have been archived and are now read-only.
The new forums are live and can be found at https://forums.eveonline.com/
php -> api help needed
function SendRequest($Request){ // get file$ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $Request); curl_setopt($ch, CURLOPT_HEADER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array('Author: admin@chaoszirkel.de','Project: self-designed-forum')); //did not know if this works curl_setopt($ch, CURLOPT_SSL_VERIFYPEER,false); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $result = curl_exec($ch); $result = json_decode($result); return $result; curl_close($ch); } function HandleReponse($Response){ // read response if($Response <> ""){ $xml = new SimpleXMLElement($Response); // the rest will depent on the returned xml echo "XML: ".$xml; // EDIT: Line-Correction } }
Mine hard!!! Minerals are needed somewhere!!!
Finds camping stations from the inside much easier. Designer of Yapeal for the Eve API. Check out the Yapeal PHP API Library thread.
Woo! CSM XI!
Fuzzwork Enterprises
Twitter: @fuzzysteve on Twitter
namespace GuzzleHttp; use GuzzleHttp\Guzzle; function getAPI($url){ $client = new Client(['base_uri' => 'https://api.eveonline.com','timeout' => 2.0,'verify' => false]); $request = $client->request('GET',$url,['stream' => true]); $body = $request->getBody(); while(!$body->eof()){ $xml = $body->read(1024); } return $xml; }