140 lines
4.7 KiB
HTML
140 lines
4.7 KiB
HTML
|
<!DOCTYPE html>
|
||
|
<html lang="en">
|
||
|
|
||
|
<head>
|
||
|
<meta charset="UTF-8">
|
||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||
|
<title>e-Amusement API</title>
|
||
|
|
||
|
<link rel="stylesheet" href="../styles.css">
|
||
|
</head>
|
||
|
|
||
|
<body>
|
||
|
<table>
|
||
|
<tr>
|
||
|
<td><a href="..">Contents</a></td>
|
||
|
<td><a href="../transport.html">Transport layer</a></td>
|
||
|
<td><a href="../packet.html">Packet format</a></td>
|
||
|
<td><a href="../protocol.html">Application Protocol</a></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
|
||
|
<h1><code>facility</code></h1>
|
||
|
<h2 id="get"><code>facility.get</code></h2>
|
||
|
<h3>Request:</h3>
|
||
|
<pre><code><call <i>...</i>>
|
||
|
<facility method="get" privateip*="" encoding*="" />
|
||
|
</call></code></pre>
|
||
|
<h3>Response:</h3>
|
||
|
<pre><code><response>
|
||
|
<facility expire=""\ status="<i>status</i>">
|
||
|
<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></code></pre>
|
||
|
<p><i>I'm not totally sure what type <code>share/eapass/valid</code> is meant to be, but it's optional, so I'd
|
||
|
suggest just not bothering and leaving it out :).</i></p>
|
||
|
<table>
|
||
|
<thead>
|
||
|
<tr>
|
||
|
<td>Country</td>
|
||
|
<td>Code</td>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tr>
|
||
|
<td>Hong Kong</td>
|
||
|
<td><code>HK</code></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td>Taiwan</td>
|
||
|
<td><code>TW</code></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td>Korea</td>
|
||
|
<td><code>KR</code></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td>USA</td>
|
||
|
<td><code>US</code></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td>Thailand</td>
|
||
|
<td><code>TH</code></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td>Indonesia</td>
|
||
|
<td><code>ID</code></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td>Singapore</td>
|
||
|
<td><code>SG</code></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td>Phillipines</td>
|
||
|
<td><code>PH</code></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td>Macao</td>
|
||
|
<td><code>MO</code></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td>Japan</td>
|
||
|
<td><code>JP</code></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<p><code>globalip</code> (and associated ports) shold be the IP:port of the cabinet.</p>
|
||
|
<p><code>region</code> is used for Japan, and has the value <code>JP-[prefecture]</code> where prefecture ranges
|
||
|
from 1 through 47.</p>
|
||
|
<p><b>TODO: Compile the list of regions</b></p>
|
||
|
</body>
|