From 1c75ff78d02d6de9f89dba09c89df62e4df7d615 Mon Sep 17 00:00:00 2001 From: Diego Sinclair Date: Wed, 4 Aug 2021 09:56:50 +0200 Subject: [PATCH 1/2] Handle 'scope' for Twitter Oauth1 --- src/One/TwitterProvider.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/One/TwitterProvider.php b/src/One/TwitterProvider.php index fff88f0b..fd1cef40 100644 --- a/src/One/TwitterProvider.php +++ b/src/One/TwitterProvider.php @@ -32,4 +32,15 @@ public function user() 'avatar_original' => str_replace('_normal', '', $user->imageUrl), ]); } + + /** + * Overrides the access level an application requests to a users account. + * + * @param string $scope + * @return void + */ + public function scope(string $scope) + { + $this->server->setApplicationScope($scope); + } } From aa3f008dec5b949f7cc090ad44f32317ef664b4d Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Wed, 4 Aug 2021 09:05:31 -0500 Subject: [PATCH 2/2] Update TwitterProvider.php --- src/One/TwitterProvider.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/One/TwitterProvider.php b/src/One/TwitterProvider.php index fd1cef40..1fe2e17f 100644 --- a/src/One/TwitterProvider.php +++ b/src/One/TwitterProvider.php @@ -34,9 +34,9 @@ public function user() } /** - * Overrides the access level an application requests to a users account. + * Set the access level the application should request to the user account. * - * @param string $scope + * @param string $scope * @return void */ public function scope(string $scope)