mirror of
https://github.com/thewesker/greptweet.git
synced 2025-12-20 04:01:06 -05:00
Notes
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user