This commit is contained in:
Kai Hendry
2013-07-14 20:52:04 +08:00
parent 1e260dfb96
commit 06f5cc0225
2 changed files with 3 additions and 1 deletions

View File

@@ -1,6 +1,7 @@
#!/bin/bash -e
# vim: set ts=4 sw=4
# apache_setenv('no-gzip', '1');
# TODO re-implement in PHP
exec 2>&1
cat <<END
Cache-Control: no-cache
@@ -52,6 +53,7 @@ then
echo "<h1 class='alert alert-info'>Attempting to update $id</h1>"
else
# TODO: This API is deprecated!
if curl -sI http://api.twitter.com/1/users/lookup.xml?screen_name=${id} |
grep -q "Status: 404 Not Found"
then

View File

@@ -30,7 +30,7 @@ function fetch($bearer_token, $query){
}
// $bearer_token = get_bearer_token(); // bearer token seems to last
require("secret.php");
require("secret.php"); // contains $bearer_token
print fetch($bearer_token, $urlargs); // search for the work 'test'
//invalidate_bearer_token($bearer_token); // invalidate the token
?>