From 9594228dd4f054af5aaf022d9ef999159a91f7f5 Mon Sep 17 00:00:00 2001 From: Kai Hendry Date: Fri, 10 Aug 2012 17:46:15 +0200 Subject: [PATCH] Tidy fetch URL --- .htaccess | 2 ++ README.md | 11 ++++++++++- main.js | 2 +- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/.htaccess b/.htaccess index d2ab708..b5c9619 100644 --- a/.htaccess +++ b/.htaccess @@ -1,2 +1,4 @@ DirectoryIndex index.shtml index.html AddType text/cache-manifest .appcache +RewriteEngine on +RewriteRule ^f/(.*)$ /create.cgi?id=$1 [L,QSA] diff --git a/README.md b/README.md index 0dd5dd7..e77ebf6 100644 --- a/README.md +++ b/README.md @@ -17,9 +17,18 @@ * Won't work on protected accounts (duh!) * No @mentions or DMs from other accounts +# API + +Fetch your tweets manually by accessing the URL: + + http://greptweet.com/f/TWITTER_USERNAME + +Last 4 tweets: + + curl -s http://greptweet/u/webconverger/tweets.txt | head -n4 + # TODO -* Redesign [client to be offline first](http://natalian.org/archives/2012/07/16/navigator.onLine/) * Nail these [bugs](https://github.com/kaihendry/Greptweet/issues?state=open) # Shell script feedback on the Web works by disabling Apache's mod_deflate ! diff --git a/main.js b/main.js index 67852e9..e8787dc 100644 --- a/main.js +++ b/main.js @@ -54,7 +54,7 @@ $(document).ready(function() { $("input[type=text]").focus(); footer = '

Download'; - footer += ' Update

'; + footer += ' Update

'; $("#source").html(footer); document.title = "Greptweet " + NAME;