about summary refs log tree commit diff stats
path: root/subx/Readme.md
Commit message (Expand)AuthorAgeFilesLines
...
* 4825Kartik Agaram2018-12-031-15/+15
* 4795Kartik Agaram2018-11-281-3/+3
* 4794Kartik Agaram2018-11-281-1/+1
* 4793Kartik Agaram2018-11-281-9/+46
* 4791Kartik Agaram2018-11-271-13/+14
* 4789Kartik Agaram2018-11-271-4/+4
* 4786Kartik Agaram2018-11-261-1/+1
* 4785Kartik Agaram2018-11-261-1/+1
* 4784Kartik Agaram2018-11-261-1/+1
* 4783Kartik Agaram2018-11-261-0/+46
* 4781Kartik Agaram2018-11-261-9/+11
* 4779Kartik Agaram2018-11-261-54/+95
* 4778 - entirely rewritten ReadmeKartik Agaram2018-11-251-133/+264
* 4730Kartik Agaram2018-10-281-1/+1
* 4727 - commit to better 64-bit supportKartik Agaram2018-10-271-3/+2
* 4638 - extract some common libraries from appsKartik Agaram2018-10-011-1/+1
* 4624Kartik Agaram2018-09-301-2/+2
* 4623Kartik Agaram2018-09-301-73/+89
* 4529 - move examples to a sub-directoryKartik Agaram2018-09-011-11/+10
* 4506Kartik Agaram2018-08-121-2/+2
* 4462Kartik Agaram2018-07-301-4/+4
* 4448Kartik Agaram2018-07-271-4/+56
* 4433Kartik Agaram2018-07-271-3/+3
* Update dependency in ReadmeMax Bernstein2018-07-251-2/+2
* 4396Kartik Agaram2018-07-241-2/+14
* 4382Kartik Agaram2018-07-201-0/+5
* 4374 - starting to use the online help systemKartik Agaram2018-07-201-1/+3
* 4370Kartik Agaram2018-07-191-5/+7
* 4369Kartik Agaram2018-07-191-5/+5
* 4367Kartik Agaram2018-07-181-0/+2
* 4353Kartik Agaram2018-07-161-4/+2
* 4351Kartik Agaram2018-07-161-0/+15
* 4348Kartik Agaram2018-07-151-1/+2
* 4346Kartik Agaram2018-07-151-0/+4
* 4345Kartik Agaram2018-07-151-21/+57
* 4319Kartik Agaram2018-07-071-1/+1
* 4076Kartik K. Agaram2017-10-161-1/+1
* 4075Kartik K. Agaram2017-10-161-3/+4
* 4074Kartik K. Agaram2017-10-161-6/+10
* 4073Kartik K. Agaram2017-10-161-4/+7
* 4070Kartik K. Agaram2017-10-151-0/+11
* 4060 - subx: correct stale ReadmeKartik K. Agaram2017-10-131-7/+1
* 4012Kartik K. Agaram2017-10-101-0/+6
* 4011 - start of sub-x86 VMKartik K. Agaram2017-10-091-1/+13
* 3968Kartik K. Agaram2017-07-111-0/+2
* 3930 - experimental bytecode interpreterKartik K. Agaram2017-06-191-0/+1
}}/api/plain/version' getwtxt {{.Vers}} </code></pre> <p>Add new user by submitting a <code>POST</code> request to the <code>/api/plain/users</code> endpoint. If both <code>?url=X</code> and <code>?nickname=X</code> are not passed, or the user already exists in this registry, you will receive <code>400 Bad Request</code> as a response. If you are unsure what went wrong, the error message should provide enough information for you to correct the request.</p> <pre><code>$ curl -X POST '{{.URL}}/api/plain/users?url=https://foo.ext/twtxt.txt&amp;nickname=foobar' 200 OK</code></pre> <p>Query responses are in descending chronological order. This means the newest user or tweet will be in the first row of the response, with older users or tweets in subsequent rows. Additionally, All queries accept <code>?page=N</code> as a parameter, returning groups of 20 results. This may be omitted for the first page of results.</p> <p>Get all users:</p> <pre><code>$ curl '{{.URL}}/api/plain/users' foo https://example.com/twtxt.txt 2019-05-09T08:42:23.000Z foobar https://example2.com/twtxt.txt 2019-04-14T19:23:00.000Z foo_barrington https://example3.com/twtxt.txt 2019-03-01T15:59:39.000Z</code></pre> <p>Query for user by URL:</p> <pre><code>$ curl '{{.URL}}/api/plain/users?url=https://example3.com/twtxt.txt' foo_barrington https://example3.com/twtxt.txt 2019-05-01T15:59:39.000Z</code></pre> <p>Query for user by keyword:</p> <pre><code>$ curl '{{.URL}}/api/plain/users?q=bar' foobar https://example2.com/twtxt.txt 2019-05-14T19:23:00.000Z foo_barrington https://example3.com/twtxt.txt 2019-04-01T15:59:39.000Z</code></pre> <p>Get all tweets:</p> <pre><code>$ curl '{{.URL}}/api/plain/tweets' foobar https://example2.com/twtxt.txt 2019-05-13T12:46:20.000Z It's been a busy day at work! ...</code></pre> <p>Query tweets by keyword:</p> <pre><code>$ curl '{{.URL}}/api/plain/tweets?q=getwtxt' foo_barrington https://example3.com/twtxt.txt 2019-04-30T06:00:09.000Z I just installed getwtxt</code></pre> <p>Get all tweets with tags:</p> <pre><code>$ curl '{{.URL}}/api/plain/tags' foo https://example.com/twtxt.txt 2019-03-01T09:33:12.000Z No, seriously, I need #help foo https://example.com/twtxt.txt 2019-03-01T09:32:05.000Z Seriously, I love #programming! foo https://example.com/twtxt.txt 2019-03-01T09:31:02.000Z I love #programming!</code></pre> <p>Query tweets by tag:</p> <pre><code>$ curl '{{.URL}}/api/plain/tags/programming' foo https://example.com/twtxt.txt 2019-03-01T09:31:02.000Z I love #programming!</code></pre> <p>Get all tweets with mentions:</p> <pre><code>$ curl '{{.URL}}/api/plain/mentions' foo https://example.com/twtxt.txt 2019-02-28T11:06:44.000Z @&lt;foo_barrington https://example3.com/twtxt.txt&gt; Hey!! Are you still working on that project? bar https://mxmmplm.com/twtxt.txt 2019-02-27T11:06:44.000Z @&lt;foobar https://example2.com/twtxt.txt&gt; How's your day going, bud? foo_barrington https://example3.com/twtxt.txt 2019-02-26T11:06:44.000Z @&lt;foo https://example.com/twtxt.txt&gt; Did you eat my lunch?</code></pre> <p>Query tweets by mention URL:</p> <pre><code>$ curl '{{.URL}}/api/plain/mentions?url=https://foobarrington.co.uk/twtxt.txt' foo https://example.com/twtxt.txt 2019-02-26T11:06:44.000Z @&lt;foo_barrington https://example3.com/twtxt.txt&gt; Hey!! Are you still working on that project?</code></pre> </div> <div id="foot"> powered by <a href="https://github.com/getwtxt/getwtxt">getwtxt</a> </div> </div> </body> </html>