aboutsummaryrefslogtreecommitdiffstats
path: root/util/shred/FriendicaOAuth.sh
diff options
context:
space:
mode:
Diffstat (limited to 'util/shred/FriendicaOAuth.sh')
-rwxr-xr-xutil/shred/FriendicaOAuth.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/util/shred/FriendicaOAuth.sh b/util/shred/FriendicaOAuth.sh
index 7f368508b..76858d73c 100755
--- a/util/shred/FriendicaOAuth.sh
+++ b/util/shred/FriendicaOAuth.sh
@@ -171,3 +171,21 @@ FO_statuses_home_timeline () {
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
+}