ID |
SUBJECT |
STATUS |
'Basic ' . $auth
);
$response = wp_remote_get( $endpoint2, array(
'headers' => $headers
) );
if ( is_wp_error( $response ) ) {
echo $response->get_error_message();
} else {
$data = json_decode( wp_remote_retrieve_body( $response ), true );
foreach ( $data as $post ) {
echo '';
echo '' . $post['id'] . ' | ';
echo '
';
}
}
}
?>