Added sequential iteration feature with persistant uid
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
<header>
|
||||
<a href="/">Home</a> | <a href="/find">Quick Search</a> |
|
||||
<a href="/random?view=rich">Random Verse</a> |
|
||||
<a href="/votd?view=rich">Verse of the Day</a></header>
|
||||
|
||||
<h2>Sequential Bible Viewer</h2>
|
||||
<p>In order to use this, you first need a UID, which you
|
||||
can get by querying /seq?getuid=true and optionally include
|
||||
&start=BIBLEREF (where BIBLEREF is like 1Cor2:1) to set
|
||||
a start position other than Genesis 1:1.</p>
|
||||
|
||||
<p>After you have your UID, this will keep track of where you
|
||||
are at. Query /seq?uid=YOURUID and optionally include
|
||||
&num=# (where # is an integer of how many verses you want to
|
||||
include from your current position at a time)</p>
|
||||
|
||||
<p>The &view= argument works with this.<p>
|
||||
|
||||
<h4>Example Pleroma Bot shell script</h4>
|
||||
<pre>
|
||||
<code>
|
||||
#!/bin/sh
|
||||
verse=$(curl -XGET https://api.1611.social/seq?uid=MYUID?view=plain);
|
||||
curl -XPOST -u biblebot:MYPASSWORD \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{"status": "'"${verse}"'"}' \
|
||||
https://my.fediverse.tld/api/v1/statuses;
|
||||
</code>
|
||||
</pre>
|
||||
|
||||
<style>
|
||||
html{
|
||||
font-family: sans-serif;
|
||||
font-size: 14pt;
|
||||
width: 768px;
|
||||
}
|
||||
a {
|
||||
color: #547720
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user