mirror of
https://github.com/thewesker/greptweet.git
synced 2025-12-21 04:31:05 -05:00
Notes
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
#!/bin/bash -e
|
#!/bin/bash -e
|
||||||
# vim: set ts=4 sw=4
|
# vim: set ts=4 sw=4
|
||||||
# apache_setenv('no-gzip', '1');
|
# apache_setenv('no-gzip', '1');
|
||||||
|
# TODO re-implement in PHP
|
||||||
exec 2>&1
|
exec 2>&1
|
||||||
cat <<END
|
cat <<END
|
||||||
Cache-Control: no-cache
|
Cache-Control: no-cache
|
||||||
@@ -52,6 +53,7 @@ then
|
|||||||
echo "<h1 class='alert alert-info'>Attempting to update $id</h1>"
|
echo "<h1 class='alert alert-info'>Attempting to update $id</h1>"
|
||||||
else
|
else
|
||||||
|
|
||||||
|
# TODO: This API is deprecated!
|
||||||
if curl -sI http://api.twitter.com/1/users/lookup.xml?screen_name=${id} |
|
if curl -sI http://api.twitter.com/1/users/lookup.xml?screen_name=${id} |
|
||||||
grep -q "Status: 404 Not Found"
|
grep -q "Status: 404 Not Found"
|
||||||
then
|
then
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ function fetch($bearer_token, $query){
|
|||||||
}
|
}
|
||||||
|
|
||||||
// $bearer_token = get_bearer_token(); // bearer token seems to last
|
// $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'
|
print fetch($bearer_token, $urlargs); // search for the work 'test'
|
||||||
//invalidate_bearer_token($bearer_token); // invalidate the token
|
//invalidate_bearer_token($bearer_token); // invalidate the token
|
||||||
?>
|
?>
|
||||||
|
|||||||
Reference in New Issue
Block a user