Yoast\WP\SEO\Config
SEMrush_Client::do_request()
Performs the specified request.
Метод класса: SEMrush_Client{}
Хуков нет.
Возвращает
Разное
. The parsed API response.
Использование
$SEMrush_Client = new SEMrush_Client(); $SEMrush_Client->do_request( $method, $url, $options );
- $method(строка) (обязательный)
- The HTTP method to use.
- $url(строка) (обязательный)
- The URL to send the request to.
- $options(массив) (обязательный)
- The options to pass along to the request.
Код SEMrush_Client::do_request() SEMrush Client::do request Yoast 24.1
public function do_request( $method, $url, array $options ) { // Add the access token to the GET parameters as well since this is what // the SEMRush API expects. $options = \array_merge_recursive( $options, [ 'params' => [ 'access_token' => $this->get_tokens()->access_token, ], ] ); return parent::do_request( $method, $url, $options ); }