Permalink
Browse files

Add API debug script

  • Loading branch information...
josh committed Oct 31, 2017
1 parent 1c7e796 commit 15c3b8f7794a8b206933b380e4b05b623f6617ba
Showing with 9 additions and 0 deletions.
  1. +9 −0 api.php
@@ -0,0 +1,9 @@
<?php
include 'overcast.php';
$id = isset($_GET['id']) ? $_GET['id'] : NULL;
if (substr($id, 0, 1) == "+") {
echo json_encode(fetchEpisode($id));
} else {
echo json_encode(fetchPodcast($id));
}
?>

0 comments on commit 15c3b8f

Please sign in to comment.