Character

Version 5 (vl, 04/10/2009 11:41 am)

1 1 vl
h1. Character
2 1 vl
3 1 vl
h2. Base URL
4 1 vl
5 1 vl
http://atys.ryzom.com/characters/index.php
6 1 vl
7 1 vl
h2. Syntax
8 1 vl
9 3 vl
* *key*: the API key for the character
10 1 vl
11 1 vl
h2. Errors
12 1 vl
13 3 vl
* *E2*: Bad API key
14 3 vl
* *E4*: Character is not found
15 1 vl
16 2 vl
h2. Update Frequency
17 2 vl
18 2 vl
The profile is updated every hour.
19 2 vl
20 1 vl
h2. PHP Example
21 1 vl
22 1 vl
<pre>
23 1 vl
<?
24 5 vl
$xml = simplexml_load_file('http://atys.ryzom.com/characters/index.php?key=<apikey>');
25 1 vl
echo "Name: ".$xml->name;
26 1 vl
?>
27 1 vl
</pre>
28 1 vl
29 5 vl
will display the name of the character.
30 1 vl
31 1 vl
h2. Real Examples