mirror of
https://gitea.tendokyu.moe/eamuse/docs.git
synced 2024-12-13 15:01:12 +01:00
200 lines
6.2 KiB
HTML
200 lines
6.2 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>eacoin</code></h1>
|
|
<h2 id="checkin"><code>eacoin.checkin</code></h2>
|
|
<h3>Request:</h3>
|
|
<pre><code><call <i>...</i>>
|
|
<eacoin method="checkin">
|
|
<cardtype __type="str" />
|
|
<cardid __type="str" />
|
|
<passwd __type="str" />
|
|
<ectype __type="str" />
|
|
</eacoin>
|
|
</call></code></pre>
|
|
<h3>Response:</h3>
|
|
<pre><code><response>
|
|
<eacoin status="<i>status</i>">
|
|
<sequence __type="s16" />
|
|
<acstatus __type="u8" />
|
|
<acid __type="str" />
|
|
<acname __type="str" />
|
|
<balance __type="s32" />
|
|
<sessid __type="str" />
|
|
</eacoin>
|
|
</response></code></pre>
|
|
|
|
<h2 id="checkout"><code>eacoin.checkout</code></h2>
|
|
<h3>Request:</h3>
|
|
<pre><code><call <i>...</i>>
|
|
<eacoin method="checkout">
|
|
<sessid __type="str" />
|
|
</eacoin>
|
|
</call></code></pre>
|
|
<h3>Response:</h3>
|
|
<pre><code><response>
|
|
<eacoin status="<i>status</i>" />
|
|
</response></code></pre>
|
|
|
|
<h2 id="consume"><code>eacoin.consume</code></h2>
|
|
<h3>Request:</h3>
|
|
<pre><code><call <i>...</i>>
|
|
<eacoin method="consume" esid="">
|
|
<sessid __type="str" />
|
|
<sequence __type="s16" />
|
|
<payment __type="s32" />
|
|
<service __type="s16" />
|
|
<itemtype __type="str" />
|
|
<detail __type="str" />
|
|
</eacoin>
|
|
</call></code></pre>
|
|
<h3>Response:</h3>
|
|
<pre><code><response>
|
|
<eacoin status="<i>status</i>">
|
|
<acstatus __type="u8" />
|
|
<autocharge __type="u8" />
|
|
<balance __type="s32" />
|
|
</eacoin>
|
|
</response></code></pre>
|
|
|
|
<h2 id="getbalance"><code>eacoin.getbalance</code></h2>
|
|
<h3>Request:</h3>
|
|
<pre><code><call <i>...</i>>
|
|
<eacoin method="getbalance">
|
|
<sessid __type="str" />
|
|
</eacoin>
|
|
</call></code></pre>
|
|
<h3>Response:</h3>
|
|
<pre><code><response>
|
|
<eacoin status="<i>status</i>">
|
|
<acstatus __type="u8" />
|
|
<balance __type="s32" />
|
|
</eacoin>
|
|
</response></code></pre>
|
|
|
|
<h2 id="getecstatus"><code>eacoin.getecstatus</code></h2>
|
|
<h3>Request:</h3>
|
|
<pre><code><call <i>...</i>>
|
|
<eacoin method="getecstatus" />
|
|
</call></code></pre>
|
|
<h3>Response:</h3>
|
|
<pre><code><response>
|
|
<eacoin status="<i>status</i>">
|
|
<ectype __type="str" />
|
|
<ecstatus __type="u8" />
|
|
</eacoin>
|
|
</response></code></pre>
|
|
|
|
<h2 id="touch"><code>eacoin.touch</code></h2>
|
|
<h3>Request:</h3>
|
|
<pre><code><call <i>...</i>>
|
|
<eacoin method="touch">
|
|
<sessid __type="str" />
|
|
</eacoin>
|
|
</call></code></pre>
|
|
<h3>Response:</h3>
|
|
<pre><code><response>
|
|
<eacoin status="<i>status</i>" />
|
|
</response></code></pre>
|
|
|
|
<h2 id="opchpass"><code>eacoin.opchpass</code></h2>
|
|
<h3>Request:</h3>
|
|
<pre><code><call <i>...</i>>
|
|
<eacoin method="opchpass">
|
|
<passwd __type="str" />
|
|
<newpasswd __type="str" />
|
|
</eacoin>
|
|
</call></code></pre>
|
|
<h3>Response:</h3>
|
|
<pre><code><response>
|
|
<eacoin status="<i>status</i>" />
|
|
</response></code></pre>
|
|
|
|
<h2 id="opcheckin"><code>eacoin.opcheckin</code></h2>
|
|
<h3>Request:</h3>
|
|
<pre><code><call <i>...</i>>
|
|
<eacoin method="opcheckin">
|
|
<passwd __type="str" />
|
|
</eacoin>
|
|
</call></code></pre>
|
|
<h3>Response:</h3>
|
|
<pre><code><response>
|
|
<eacoin status="<i>status</i>">
|
|
<sessid __type="str" />
|
|
</eacoin>
|
|
</response></code></pre>
|
|
|
|
<h2 id="opcheckout"><code>eacoin.opcheckout</code></h2>
|
|
<h3>Request:</h3>
|
|
<pre><code><call <i>...</i>>
|
|
<eacoin method="opcheckout">
|
|
<sessid __type="str" />
|
|
</eacoin>
|
|
</call></code></pre>
|
|
<h3>Response:</h3>
|
|
<pre><code><response>
|
|
<eacoin status="<i>status</i>" />
|
|
</response></code></pre>
|
|
|
|
<h2 id="getlog"><code>eacoin.getlog</code></h2>
|
|
<h3>Request:</h3>
|
|
<pre><code><call <i>...</i>>
|
|
<eacoin method="getlog">
|
|
<sessid __type="str" />
|
|
<logtype __type="str" />
|
|
<ectype __type="str" />
|
|
<target __type="str" />
|
|
<perpage __type="s16" />
|
|
<page __type="s16" />
|
|
<sesstype __type="str" />
|
|
</eacoin>
|
|
</call></code></pre>
|
|
<h3>Response:</h3>
|
|
<pre><code><response>
|
|
<eacoin status="<i>status</i>">
|
|
<processing __type="u8" />
|
|
<topic>
|
|
<sumdate __type="str" />
|
|
<sumfrom __type="str" />
|
|
<sumto __type="str" />
|
|
|
|
<today __type="s32" />
|
|
<average __type="s32" />
|
|
<total __type="s32" />
|
|
</topic>
|
|
<summary>
|
|
<items __type="s32" />
|
|
</summary>
|
|
<history>
|
|
<item[]>
|
|
<date __type="str" />
|
|
<consume __type="s32" />
|
|
<service __type="s32" />
|
|
<cardtype __type="str" />
|
|
<cardno __type="str" />
|
|
<title __type="str" />
|
|
<systemid __type="str" />
|
|
</item[]>
|
|
</history>
|
|
</eacoin>
|
|
</response></code></pre>
|
|
</body> |