aboutsummaryrefslogtreecommitdiffstats
path: root/util/shred/FriendicaOAuth.sh
diff options
context:
space:
mode:
Diffstat (limited to 'util/shred/FriendicaOAuth.sh')
-rwxr-xr-xutil/shred/FriendicaOAuth.sh20
1 files changed, 19 insertions, 1 deletions
diff --git a/util/shred/FriendicaOAuth.sh b/util/shred/FriendicaOAuth.sh
index 67f64b6eb..4055e44a9 100755
--- a/util/shred/FriendicaOAuth.sh
+++ b/util/shred/FriendicaOAuth.sh
@@ -162,7 +162,7 @@ FO_statuses_home_timeline () {
$(OAuth_param 'screen_name' $screen_name)
$(OAuth_param 'count' $count)
)
-g
+
local auth_header=$(OAuth_authorization_header 'Authorization' "$redmatrix_url" '' '' 'GET' "$F_STATUSES_HOME_TIMELINE.$format" ${params[@]})
convscreen=$(OAuth_PE "$screen_name");
@@ -171,3 +171,21 @@ g
return $FO_rval
}
+
+FO_command () {
+ local command="$1"
+
+ local params=(
+ $(OAuth_param 'screen_name' $screen_name)
+ $(OAuth_param 'count' $count)
+ )
+
+
+ local auth_header=$(OAuth_authorization_header 'Authorization' "$redmatrix_url" '' '' 'GET' "${redmatrix_url}/api/${command}.json" ${params[@]})
+
+ convscreen=$(OAuth_PE "$screen_name");
+ FO_ret=$(curl -s --get "${redmatrix_url}/api/${command}.json" --data "screen_name=${convscreen}&count=${count}" --header "${auth_header}")
+ FO_rval=$?
+
+ return $FO_rval
+}