App-Tacochan
view release on metacpan or search on metacpan
bin/tacochan view on Meta::CPAN
<h4>Examples</h4>
<section class="example">
<h5>#1 Send a message to 1:1 chat</h5>
<pre>echo123</pre>
<p>Passes username to <code>chat</code> parameter. In this case, send a message to 'echo123'.</p>
</section>
<section class="example">
<h5>#2 Create a new group chat and send a message</h5>
<pre>echo123,anappo5</pre>
<p>Passes usernames separated by ',' to <code>chat</code> parameter. In this case, create <em>a new group chat</em> to add 'echo123', 'anappo5'. If you don't want to create a new group chat, see #3 or #4.</p>
</section>
<section class="example">
<h5>#3 Send a message to an existing group chat (with chatname)</h5>
<pre>#anappo2/$d936403094338dbb</pre>
<p>Passes chatname to <code>chat</code> parameter. Note that chatname is internal chat identifier. In tacochan, you can only get it from <a href="#docsRecentChats">Recent chats</a>.</p>
</section>
<section class="example">
<h5>#4 Send a message to an existing group chat (with Skype URI)</h5>
<pre>skype:?chat&lob=LsgqqqCTpxWYjt9PL1hSvGDOiPhqUuQAHxI7w7Qu7gJ3VZv_q_99ZJO4lF9Dfaw</pre>
<p>Passes Skype URI to <code>chat</code> parameter. Note that if you want to get Skype URI (skype:), you need to send this message to the chat: <code>/get uri</code></p>
</section>
<h3><a id="docsChatID">Chat ID</a></h3>
<table class="table table-bordered">
<tr>
<td class="name">method</td>
<td><code>GET</code></td>
</tr>
<tr>
<td class="name">url</td>
<td><code>[% c().req.base %]chat_id</code></td>
</tr>
<tr>
<td class="name">form params</td>
<td>
<code>chat=skype:|user[, user, ...]</code>
</td>
</tr>
<tr>
<td class="name">Content-Type</td>
<td><code>text/plain; charset=utf-8</code></td>
</tr>
</table>
<p>Responds chat_id from Skype URI or username (chat_id is like this: <code>#anappo2/$d936403094338dbb</code>)</p>
</div>
</div>
</article>
</body>
</html>
@@ /static/css/main.css
.tacochan {
padding: 0;
}
.tacochan article.container {
width: auto;
}
header.header {
margin: 0 auto 2% auto;
padding-top: 5%;
background: #d44413;
color: #fff;
}
.error {
background: #3b4653 !important;
}
table td.name {
width: 150px;
font-weight: bold;
}
div.docs {
margin: 2% auto 0 auto;
padding: 20px 0 5%;
background: #eee;
color: #000;
}
div.docs h3 a {
color: #000;
}
div.docs table {
background: #fff;
}
div.docs section.example {
margin-bottom: 5px;
padding: 10px;
background: #fff;
}
__END__
=head1 NAME
tacochan - Skype message delivery by HTTP
=head1 SYNOPSIS
% tacochan
=head1 OPTIONS
=over 4
=item -o, --host
The interface a TCP based server daemon binds to. Defaults to undef,
which lets most server backends bind the any (*) interface. This
option doesn't mean anything if the server does not support TCP
socket.
=item -p, --port (default: 4969)
The port number a TCP based server daemon listens on. Defaults to
4969. This option doesn't mean anything if the server does not support
TCP socket.
=item -r, --reverse-proxy
Treat X-Forwarded-For as REMOTE_ADDR if REMOTE_ADDR match this argument.
See L<Plack::Middleware::ReverseProxy>.
=item -h, --help
Show help for this command.
=item -v, --version
Show version.
=back
=cut
( run in 1.621 second using v1.01-cache-2.11-cpan-0bb4e1dffa6 )