Guild
Version 2 (vl, 07/09/2009 12:11 pm)
| 1 | 1 | vl | h1. guild |
|---|---|---|---|
| 2 | 1 | vl | |
| 3 | 1 | vl | Access information from a guild. |
| 4 | 1 | vl | |
| 5 | 1 | vl | h2. Base URL |
| 6 | 1 | vl | |
| 7 | 1 | vl | * http://atys.ryzom.com/api/guild.php |
| 8 | 1 | vl | |
| 9 | 1 | vl | h2. URL Parameters |
| 10 | 1 | vl | |
| 11 | 1 | vl | h3. @key@ |
| 12 | 1 | vl | |
| 13 | 1 | vl | The [[API Key]] of the *guild*. |
| 14 | 1 | vl | |
| 15 | 1 | vl | h2. Cache Duration |
| 16 | 1 | vl | |
| 17 | 1 | vl | The information are cached for *1 hour*. |
| 18 | 1 | vl | |
| 19 | 1 | vl | h2. PHP Interface |
| 20 | 1 | vl | |
| 21 | 2 | vl | h3. @ryzom_guild_simplexml($key)@ |
| 22 | 2 | vl | |
| 23 | 2 | vl | Get a guild @$key@ and returns a "simplexml":http://fr3.php.net/manual/en/book.simplexml.php object containing the guild information. |
| 24 | 2 | vl | |
| 25 | 2 | vl | h3. @ryzom_guild_valid_key($key, &$gid)@ |
| 26 | 2 | vl | |
| 27 | 2 | vl | Returns true if the guild key seems valid (or false if not). It doesn't do server check, but only basic checks. |
| 28 | 2 | vl | |
| 29 | 2 | vl | This function sets the guild id. |
| 30 | 1 | vl | |
| 31 | 1 | vl | h2. Real Examples |
| 32 | 1 | vl | |
| 33 | 1 | vl | If you have a website that use this Ryzom API, tell it in the forum and we'll add it. |