From 301566002595d55c97a7ef81bf39f5115e94d96b Mon Sep 17 00:00:00 2001 From: Philipp Date: Wed, 30 Sep 2020 11:21:58 +0200 Subject: [PATCH] Move library\OAuth1.php to class structure Friendica\Security\OAuth1 --- statusnet/library/twitteroauth.php | 6 ++++++ tumblr/library/tumblroauth.php | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/statusnet/library/twitteroauth.php b/statusnet/library/twitteroauth.php index 5ac2ab12..7bd53d28 100644 --- a/statusnet/library/twitteroauth.php +++ b/statusnet/library/twitteroauth.php @@ -8,6 +8,12 @@ * Version 0.2.0 kept for compatibility purpose with StatusNetOAuth */ +use Friendica\Security\OAuth1\OAuthConsumer; +use Friendica\Security\OAuth1\OAuthRequest; +use Friendica\Security\OAuth1\OAuthSignatureMethod_HMAC_SHA1; +use Friendica\Security\OAuth1\OAuthToken; +use Friendica\Security\OAuth1\OAuthUtil; + /** * Twitter OAuth class */ diff --git a/tumblr/library/tumblroauth.php b/tumblr/library/tumblroauth.php index 4e21a6ab..ac96456f 100644 --- a/tumblr/library/tumblroauth.php +++ b/tumblr/library/tumblroauth.php @@ -6,6 +6,12 @@ * The first PHP Library to support OAuth for Tumblr's REST API. (Originally for Twitter, modified for Tumblr by Lucas) */ +use Friendica\Security\OAuth1\OAuthConsumer; +use Friendica\Security\OAuth1\OAuthRequest; +use Friendica\Security\OAuth1\OAuthSignatureMethod_HMAC_SHA1; +use Friendica\Security\OAuth1\OAuthToken; +use Friendica\Security\OAuth1\OAuthUtil; + /** * Tumblr OAuth class */ -- 2.39.5