open All Channels
seplocked EVE Technology Lab
blankseplocked Pheal XML output
 
This thread is older than 90 days and has been locked due to inactivity.


 
Author Topic

Chritons Ghost
Angels Of Mordus
Posted - 2011.04.01 18:51:00 - [1]
 

I'm trying to get Pheal to output the raw xml from the cache but i'm having issues getting it to actually show me the xml, if someone could help me out, i'd appreciate it. This is what I currently have:

Quote:
require_once "Pheal/Pheal.php";
spl_autoload_register("Pheal::classload");
PhealConfig::getInstance()->cache = new PhealFileCache();
$pheal = new Pheal("$userID", "$limited", "account");
$pheal->scope = "account";
$result = $pheal->Characters();
foreach($result->characters as $character)
echo $character->name;


Wollari
Phoenix Industries
Wicked Nation
Posted - 2011.04.02 10:13:00 - [2]
 

Edited by: Wollari on 02/04/2011 10:15:20
The raw xml data is stored in $phealobject->xml for later usage

// init
require_once "Pheal/Pheal.php";
spl_autoload_register("Pheal::classload");
PhealConfig::getInstance()->cache = new PhealFileCache();

// request
$pheal = new Pheal("$userID", "$limited", "account");
$result = $pheal->accountScope->Characters();

// process, work with api data
foreach($result->characters as $character)
echo $character->name;

// retrieve raw xml
echo $pheal->xml;

// retreive api result convert to nested array
print_r($result->toArray());

Hope that helps

There aren't many use cases where you really need the raw xml file for. but sometimes it helps of course.

Zeta Zhul
Caldari
Preemptive Paranoia
Posted - 2011.04.02 15:06:00 - [3]
 

Couldn't you just look into the directory where Pheal stores it's xml files and just open it up in a browser?

Chritons Ghost
Angels Of Mordus
Posted - 2011.04.07 01:00:00 - [4]
 

The current system I am working with can do xml imports from http requests, but not https, so using PHEAL I can grab the xml and stash it in a folder that the app can read from and import. It can do direct PHP reading but then I would have to rewrite pheal in this app's php api and that isnt going to happen.

Your solution works beautifully Wollari, thanks.


 

This thread is older than 90 days and has been locked due to inactivity.


 


The new forums are live

Please adjust your bookmarks to https://forums.eveonline.com

These forums are archived and read-only