Skip to content

Commit

Permalink
Add missing method in TV API.
Browse files Browse the repository at this point in the history
  • Loading branch information
wtfzdotnet committed Mar 8, 2014
1 parent 3de3bc6 commit 7287fe2
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions lib/Tmdb/Api/Tv.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,4 +113,18 @@ public function getTranslations($tvshow_id, array $parameters = array(), array $
{
$this->get('tv/' . $tvshow_id . '/translations', $parameters, $headers);
}

/**
* Get the list of TV shows that are currently on the air.
*
* This query looks for any TV show that has an episode with an air date in the next 7 days.
*
* @param array $parameters
* @param array $headers
* @return mixed
*/
public function getOnTheAir(array $parameters = array(), array $headers = array())
{
$this->get('tv/on_the_air', $parameters, $headers);
}
}

0 comments on commit 7287fe2

Please sign in to comment.