]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/OAuth/Token.php
Update copyright
[friendica.git] / src / Module / OAuth / Token.php
index 8bbb272c31d45f8063998b3c021a084332b37c5e..d41c056dfab00af847433934b4f760c34601f63d 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2021, the Friendica project
+ * @copyright Copyright (C) 2010-2022, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -34,9 +34,9 @@ use Friendica\Security\OAuth;
  */
 class Token extends BaseApi
 {
-       protected function post(array $request = [], array $post = [])
+       protected function post(array $request = [])
        {
-               $request = self::getRequest([
+               $request = $this->getRequest([
                        'client_id'     => '', // Client ID, obtained during app registration
                        'client_secret' => '', // Client secret, obtained during app registration
                        'redirect_uri'  => '', // Set a URI to redirect the user to. If this parameter is set to "urn:ietf:wg:oauth:2.0:oob" then the token will be shown instead. Must match one of the redirect URIs declared during app registration.