$response = wp_remote_post( ‘https://support.baguio…/api/index.php/contacts’, array(
‘headers’ => array(
‘DOLAPIKEY’ => ‘your_api_key_here’,
‘Content-Type’ => ‘application/json’,
),
‘body’ => json_encode(array(
‘firstname’ => ‘Juan’,
‘lastname’ => ‘Dela Cruz’,
’email’ => ‘juan@example.com’
)),
) );

Welcome to WordPress. This is your first post. Edit or delete it, then start writing!