Yoast\WP\SEO\AI\Authentication\Application

Auth_Strategy_Interface::sendpublicYoast 1.0

Authenticates and dispatches the request, returning the parsed response.

Non-200 responses are translated into typed exceptions from the AI HTTP_Request exception family. Strategy-specific 4xx semantics (e.g. an OAuth-only insufficient_scope 403) are thrown as their own typed exceptions so the sender can route them past the fallback path.

Метод класса: Auth_Strategy_Interface{}

Хуков нет.

Возвращает

Response. The parsed response.

Использование

$Auth_Strategy_Interface = new Auth_Strategy_Interface();
$Auth_Strategy_Interface->send( $request, $user ): Response;
$request(Request) (обязательный)
The base request, without auth headers.
$user(WP_User) (обязательный)
The WP user the request is on behalf of.

Код Auth_Strategy_Interface::send() Yoast 28.3

public function send( Request $request, WP_User $user ): Response;