OAuth_Client::post()publicYoast 1.0

Performs an authenticated POST request to the desired URL.

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

Хуков нет.


Разное. The parsed API response.


$OAuth_Client = new OAuth_Client();
$OAuth_Client->post( $url, $body, $options );
$url(строка) (обязательный)
The URL to send the request to.
$body(разное) (обязательный)
The data to send along in the request's body.
The options to pass along to the request.
По умолчанию: []

Код OAuth_Client::post() Yoast 22.7

public function post( $url, $body, $options = [] ) {
	$options['body'] = $body;

	return $this->do_request( 'POST', $url, $options );