diff options
author | friendica <info@friendica.com> | 2014-05-29 16:14:10 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-05-29 16:14:10 -0700 |
commit | 9b5eabf1083602382385c62c6ad7d8ae8e167f9e (patch) | |
tree | a73ed07970a517dbad90f14954fea790193813c3 /util/shred/FriendicaOAuth.sh | |
parent | a00103b7dfa0b128cbe6ab03e6a43ccedb24f8c2 (diff) | |
parent | 1a58777daa0ab9394f38737a806a7a185ebceeb0 (diff) | |
download | volse-hubzilla-9b5eabf1083602382385c62c6ad7d8ae8e167f9e.tar.gz volse-hubzilla-9b5eabf1083602382385c62c6ad7d8ae8e167f9e.tar.bz2 volse-hubzilla-9b5eabf1083602382385c62c6ad7d8ae8e167f9e.zip |
Merge branch 'master' into newevent
Conflicts:
include/zot.php
Diffstat (limited to 'util/shred/FriendicaOAuth.sh')
-rwxr-xr-x | util/shred/FriendicaOAuth.sh | 18 |
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 +} |