fbpx


'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 ''; echo ''; } } } ?>
ID SUBJECT STATUS
' . $post['id'] . '