[insert_php]

$response = wp_remote_get( ‘https://plancomhelp.zendesk.com/api/v2/channels/voice/stats/current_queue_activity.json?phone_number_ids=20966669’ );

$args = array(
‘headers’ => array(
‘Authorization’ => ‘Basic ‘ . base64_encode( [email protected] . ‘:’ . password$ )
)
);
wp_remote_get( $url, $args );

echo $response

$request = wp_remote_get( ‘https://plancomhelp.zendesk.com/api/v2/channels/voice/stats/current_queue_activity.json?phone_number_ids=20966669’ );
if( is_wp_error( $request ) ) {
return false; // Bail early
}
$body = wp_remote_retrieve_body( $request );
$data = json_decode( $body );
[/insert_php]