[insert_php]
$url = ‘http://217.182.252.95:8080/HR/api/register/’.$_GET[‘token’];
$response = wp_remote_post( $url, array(
‘method’ => ‘POST’,
‘timeout’ => 45,
‘redirection’ => 5,
‘httpversion’ => ‘1.0’,
‘blocking’ => true,
‘headers’ => array(),
‘body’ => array(),
‘cookies’ => array()
)
);
if ( !is_wp_error( $response ) ) {
$code = wp_remote_retrieve_response_code( $response );
if ( $code == 200 ) {
echo ‘Successfully completed activation.
Jolly Animation Account Team thank you. Strong>‘;
} else {
echo ‘Activation not completed, contact technical support.
Sorry for discomfort. Strong>‘;
}
} else {
echo ‘Unexpected error.We apologize for the discomfort. Strong>‘;
}
[/insert_php]