Welcome Guest, Not a member yet? Register   Sign In
Movie database (TMDb) library
#1

[eluser]chrisnharvey[/eluser]
This is the first library I have released which is a TMDb (The Movie Database) Library that I wrote that allows easy access to most of the methods in the TMDb API and returns the response in an array. It still needs a lot of work, but please let me know what you think and give me some feedback and suggestions.

Loading the library is simple and works in the usual way

Code:
$this->load->library('TMDb');

So now the library is loaded, you will want to make your first call. Usually you would call the TMDb API URL such as http://api.themoviedb.org/2.1/Movie.getI...APIKEY/187 but to call this same method using this library its as simple as.

Code:
$data = $this->tmdb->call('APIKEY', 'Movie.getInfo', '187');

You can then use this $data array to show any of the nodes that would usually appear in the TMDb response. For example, if you wanted to show the name of the movie, you would write

Code:
echo $data->name;

Thats a short example on how you can use this library, a more detailed documentation is coming soon.

You can download this library from this GitHub repository https://github.com/b2tm/CodeIgniter-TMDb-Library

Enjoy!
#2

[eluser]Basketcasesoftware[/eluser]
It sounds like a good application but I don't have any projects right now that would require IMDB access. When I have the chance I'll try to test it out for you though. My plate if pretty full at the moment.




Theme © iAndrew 2016 - Forum software by © MyBB