Difference between revisions of "Ryzom API/Guild icon"
From EncyclopAtys
m (typo) |
|||
Line 1: | Line 1: | ||
− | <noinclude>__TOC__</noinclude> | + | <noinclude>{{Trad|DE=Ryzom API/Gilden-Symbol|EN=Ryzom API/Guild icon|palette=api|H=1}}__TOC__</noinclude> |
Retrieves a guild icon | Retrieves a guild icon | ||
Latest revision as of 12:43, 27 May 2023
Retrieves a guild icon
Usage
<base URL>/guild_icon.php?icon=:icon&size=:size
URL Parameters
- icon
- It's a raw 64bit number from Character xml or Guild list xml file
- size (optional)
s
(default) Small guild icon (32x32 pixels)b
Big guild icon (64x64 pixels)
- size (optional)
Cache Duration
It's cached for ever. Since the icon is unique and never changes. For a specific icon, it'll always return the same image.
PHP interface
ryzom_guild_icon_url($icon, $size)
Returns a string that contains the url to display a guild icon.
<?php
require_once "ryzomapi_lite.php";
$url = ryzom_guild_icon_url("4505559206514131", 'b');
echo "<img src=\"$url\" alt=\"\">";