From 5be84b22383bd7c7820ae8a88afdc27c55a7b0d0 Mon Sep 17 00:00:00 2001 From: Ben Morrison Date: Tue, 4 Jun 2019 03:44:01 -0400 Subject: fixed most example api calls with horizontal scrolling --- assets/tmpl/index.html | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'assets/tmpl') diff --git a/assets/tmpl/index.html b/assets/tmpl/index.html index c6cc6a9..4eaca5c 100644 --- a/assets/tmpl/index.html +++ b/assets/tmpl/index.html @@ -38,7 +38,7 @@ If both ?url=X and ?nickname=X are not passed, or the user already exists in this registry, you will receive 400 Bad Request as a response. If you are unsure what went wrong, the error message should provide enough information for you to correct the request.

-
$ curl -X POST '{{.URL}}/api/plain/users?url=https://example3.com/twtxt.txt&nickname=foo_barrington'
+        
$ curl -X POST '{{.URL}}/api/plain/users?url=https://foo.ext/twtxt.txt&nickname=foobar'
 200 OK

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 ?page=N @@ -61,15 +61,7 @@ foobar https://example2.com/twtxt.txt 2019-05-13T12:46:20.000Z It's bee ...

Query tweets by keyword:

$ curl '{{.URL}}/api/plain/tweets?q=getwtxt'
-foo_barrington    https://example3.com/twtxt.txt    2019-04-30T06:00:09.000Z    I just built getwtxt, time to set it up!
-

Get all tweets with mentions:

-
$ curl '{{.URL}}/api/plain/mentions'
-foo               https://example.com/twtxt.txt     2019-02-28T11:06:44.000Z    @<foo_barrington https://example3.com/twtxt.txt> Hey!! Are you still working on that project?
-bar               https://mxmmplm.com/twtxt.txt     2019-02-27T11:06:44.000Z    @<foobar https://example2.com/twtxt.txt> How's your day going, bud?
-foo_barrington    https://example3.com/twtxt.txt    2019-02-26T11:06:44.000Z    @<foo https://example.com/twtxt.txt> Did you eat my lunch?
-

Query tweets by mention URL:

-
$ curl '{{.URL}}/api/plain/mentions?url=https://foobarrington.co.uk/twtxt.txt'
-foo    https://example.com/twtxt.txt    2019-02-26T11:06:44.000Z    @<foo_barrington https://example3.com/twtxt.txt> Hey!! Are you still working on that project?
+foo_barrington https://example3.com/twtxt.txt 2019-04-30T06:00:09.000Z I just installed getwtxt

Get all tweets with tags:

$ curl '{{.URL}}/api/plain/tags'
 foo    https://example.com/twtxt.txt    2019-03-01T09:33:12.000Z    No, seriously, I need #help
@@ -78,6 +70,14 @@ foo    https://example.com/twtxt.txt    2019-03-01T09:31:02.000Z    I love #prog
       

Query tweets by tag:

$ curl '{{.URL}}/api/plain/tags/programming'
 foo    https://example.com/twtxt.txt    2019-03-01T09:31:02.000Z    I love #programming!
+

Get all tweets with mentions:

+
$ curl '{{.URL}}/api/plain/mentions'
+foo               https://example.com/twtxt.txt     2019-02-28T11:06:44.000Z    @<foo_barrington https://example3.com/twtxt.txt> Hey!! Are you still working on that project?
+bar               https://mxmmplm.com/twtxt.txt     2019-02-27T11:06:44.000Z    @<foobar https://example2.com/twtxt.txt> How's your day going, bud?
+foo_barrington    https://example3.com/twtxt.txt    2019-02-26T11:06:44.000Z    @<foo https://example.com/twtxt.txt> Did you eat my lunch?
+

Query tweets by mention URL:

+
$ curl '{{.URL}}/api/plain/mentions?url=https://foobarrington.co.uk/twtxt.txt'
+foo    https://example.com/twtxt.txt    2019-02-26T11:06:44.000Z    @<foo_barrington https://example3.com/twtxt.txt> Hey!! Are you still working on that project?
b1635a5c ^
4a4a392d ^













2104d1a7 ^
4a4a392d ^



6070c23e ^
8aeb85f0 ^
4a4a392d ^



8aeb85f0 ^
4a4a392d ^






999c529c ^
4a4a392d ^














b1635a5c ^
4a4a392d ^







999c529c ^
4a4a392d ^



8aeb85f0 ^
4a4a392d ^
8aeb85f0 ^
999c529c ^







3dad9426 ^
999c529c ^





3dad9426 ^
999c529c ^


























8aeb85f0 ^
999c529c ^
8aeb85f0 ^
999c529c ^







3dad9426 ^
999c529c ^





3dad9426 ^
999c529c ^









8aeb85f0 ^
999c529c ^













8aeb85f0 ^
999c529c ^
8aeb85f0 ^
999c529c ^







3dad9426 ^
999c529c ^





3dad9426 ^
999c529c ^









8aeb85f0 ^
999c529c ^













8aeb85f0 ^
999c529c ^
8aeb85f0 ^
999c529c ^







3dad9426 ^
999c529c ^





3dad9426 ^
999c529c ^









8aeb85f0 ^
999c529c ^





4a4a392d ^