- Download the plugin into your plugins directory
- Enable in the WordPress admin
curl --user admin:password https://example.com/wp-json/
$args = array(
'headers' => array(
'Authorization' => 'Basic ' . base64_encode( $username . ':' . $password ),
),
);