Yoast\WP\SEO\MyYoast_Client\Application
MyYoast_Client::authenticated_request
Makes an authenticated DPoP-bound request to a resource server.
Метод класса: MyYoast_Client{}
Хуков нет.
Возвращает
HTTP_Response. The response.
Использование
$MyYoast_Client = new MyYoast_Client(); $MyYoast_Client->authenticated_request( $method, $url, $token_set, $options ): HTTP_Response;
- $method(строка) (обязательный)
- The HTTP method.
- $url(строка) (обязательный)
- The resource URL.
- $token_set(Token_Set) (обязательный)
- The token set to use.
- $options(массив)
- .
По умолчанию:[]
Код MyYoast_Client::authenticated_request() MyYoast Client::authenticated request Yoast 27.7
public function authenticated_request( string $method, string $url, Token_Set $token_set, array $options = [] ): HTTP_Response {
return $this->http_client->authenticated_request(
$method,
$url,
$token_set->get_access_token(),
$token_set->get_token_type(),
$options,
);
}