add_action('rest_api_init', function () { register_rest_route('legends/v1', '/playlist', array( 'methods' => 'GET', 'callback' => function () { $url = 'https://yp.cdnstream1.com/metadata/p1w7r97sb0k/last/24.json'; $response = wp_remote_get($url, array( 'timeout' => 10, 'headers' => array( 'Accept' => 'application/json' ) )); if (is_wp_error($response)) { return new WP_Error('playlist_error', 'Could not fetch playlist.', array('status' => 500)); } $body = wp_remote_retrieve_body($response); return new WP_REST_Response(json_decode($body, true), 200); }, 'permission_callback' => '__return_true' )); });
What happens when Pablo Picasso and Albert Einstein walk into a Paris café? MSU Denver presents Steve Martin’s witty absurdist comedy Picasso at the Lapin Agile, running November 12–22 at the King Center.
What happens when Pablo Picasso and Albert Einstein walk into a Paris café? MSU Denver presents Steve Martin’s witty absurdist comedy Picasso at the Lapin Agile, running November 12–22 at the King Center.
What happens when Pablo Picasso and Albert Einstein walk into a Paris café? MSU Denver presents Steve Martin’s witty absurdist comedy Picasso at the Lapin Agile, running November 12–22 at the King Center.
What happens when Pablo Picasso and Albert Einstein walk into a Paris café? MSU Denver presents Steve Martin’s witty absurdist comedy Picasso at the Lapin Agile, running November 12–22 at the King Center.
What happens when Pablo Picasso and Albert Einstein walk into a Paris café? MSU Denver presents Steve Martin’s witty absurdist comedy Picasso at the Lapin Agile, running November 12–22 at the King Center.
What happens when Pablo Picasso and Albert Einstein walk into a Paris café? MSU Denver presents Steve Martin’s witty absurdist comedy Picasso at the Lapin Agile, running November 12–22 at the King Center.
What happens when Pablo Picasso and Albert Einstein walk into a Paris café? MSU Denver presents Steve Martin’s witty absurdist comedy Picasso at the Lapin Agile, running November 12–22 at the King Center.