« Previous - Version 10/18 (diff) - Next » - Current version
vl, 04/12/2009 10:42 am


Character

Base URL

http://atys.ryzom.com/characters/index.php

Syntax

  • key: API Key of the character (partial or full)

Errors

  • E2: Bad API Key
  • E4: Character is not found

Update Frequency

The profile is updated every hour.

PHP Example

<?
$url = 'http://atys.ryzom.com/characters/index.php?key=<apikey>';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_ENCODING , 'gzip');
$output = curl_exec($ch);
curl_close($ch);
$xml = simplexml_load_string($output);
echo "Name: ".$xml->name;
?>

will display the name of the character.

Real Examples