This method can be used for adding non-standard parameters required by your application, as well as parameters within the spec.
<?php
$Provider->addRequiredParameter("permissions");
$Provider->addRequiredParameter("oauth_callback");
PHP - Manual: OAuthProvider::addRequiredParameter
2024-11-13
(PECL OAuth >= 1.0.0)
OAuthProvider::addRequiredParameter — 添加必需的参数
$req_params
): bool添加必需的 oauth 提供者参数。
本函数还未编写文档,仅有参数列表。
req_params
必需的参数。
成功时返回 true
, 或者在失败时返回 false
。
This method can be used for adding non-standard parameters required by your application, as well as parameters within the spec.
<?php
$Provider->addRequiredParameter("permissions");
$Provider->addRequiredParameter("oauth_callback");
官方地址:https://www.php.net/manual/en/oauthprovider.addrequiredparameter.php