{% extends "base.html" %} {% block body %}

facility

facility.get

Request:

<call ...>
    <facility method="get" privateip*="" encoding*="" />
</call>

Response:

<response>
    <facility expire=""\ status="status">
        <calendar*>
            <year __type="s16" />
            <holiday __type="s16" />
        </calendar>
        <location>
            <id __type="str" />
            <country __type="str" />
            <region __type="str" />
            <name __type="str" />
            <type __type="u8" />
            <countryname __type="str" />
            <countryjname __type="str" />
            <regionname __type="str" />
            <regionjname __type="str" />
            <customercode __type="str" />
            <companycode __type="str" />
            <latitude __type="s32" />
            <longitude __type="s32" />
            <accuracy __type="u8" />
        </location>
        <line>
            <id __type="str" />
            <class __type="u8" />
        </line>
        <portfw>
            <globalip __type="ip4" />
            <globalport __type="s16" />
            <privateport __type="s16" />
        </portfw>
        <public>
            <flag __type="u8" />1</ flag>
            <name __type="str" />
            <latitude __type="str">0<latitude>
            <longitude __type="str">0<longitude>
        </public>
        <share>
            <eapass*>
                <valid __type="?" />
            </eapass>
            <eacoin>
                <notchamount __type="s32" />
                <notchcount __type="s32" />
                <supplylimit __type="s32">100000<supplylimit>
            </eacoin>
            <url>
                <eapass __type="str">www.ea-pass.konami.net<eapass>
                <arcadefan __type="str">www.konami.jp/am<arcadefan>
                <konaminetdx __type="str">http://am.573.jp<konaminetdx>
                <konamiid __type="str">http://id.konami.jp<konamiid>
                <eagate __type="str">http://eagate.573.jp<eagate>
            </url>
        </share>
    </facility>
</response>

I'm not totally sure what type share/eapass/valid is meant to be, but it's optional, so I'd suggest just not bothering and leaving it out :).

Country Code
Hong Kong HK
Taiwan TW
Korea KR
USA US
Thailand TH
Indonesia ID
Singapore SG
Phillipines PH
Macao MO
Japan JP

globalip (and associated ports) shold be the IP:port of the cabinet.

region is used for Japan, and has the value JP-[prefecture] where prefecture ranges from 1 through 47.

TODO: Compile the list of regions

{% endblock %}