Coder Social home page Coder Social logo

bryant1410 / jltmdbclient Goto Github PK

View Code? Open in Web Editor NEW

This project forked from javilorbada/jltmdbclient

0.0 1.0 0.0 5.52 MB

JLTMDbClient is an iOS wrapper on top of AFNetworking to interact with www.themoviedb.org API.

License: MIT License

Objective-C 92.30% Ruby 4.30% Makefile 3.40%

jltmdbclient's Introduction

JLTMDbClient

Version License Platform No Maintenance Intended

  • JLTMDbClient is an iOS wrapper on top of AFNetworking to interact with themoviedb.org API.

Installation:

Demo App:

  1. Clone the repository:
$ git clone [email protected]:JaviLorbada/JLTMDbClient.git
  1. Open the .xcworkspace file to see the example:
$ open JLTMDbClient.xcworkspace
  1. Run JLTMDbClient target to see a simple visual example.
  2. Run JLTMDbClientTests target to see different cases on how to use the API.

Screenshot Screenshot

Usage:

  1. Get your API KEY from themoviedb.org

"A TMDb user account is required to request an API key. Commercial users are approved on a per application basis. As always, you must attribute TMDb as the source of your data. Please be sure to read the API FAQ"

  1. Add JLTMDbClient to your application, and set up your API KEY.
#import <JLTMDbClient.h>
[[JLTMDbClient sharedAPIInstance] setAPIKey:@"API_KEY"];
  1. Call a service to get the response from the server *, i.e:
[[JLTMDbClient sharedAPIInstance] GET:kJLTMDbMoviePopular withParameters:nil andResponseBlock:^(id response, NSError *error) {
    if(!error){
        fetchedData = response;
        NSLog(@"Popular Movies: %@",fetchedData);
    }
}];

Unit Tests:

  • JLTMDbClient includes unit tests. In order to run the unit tests, you need to add your API_KEY. Then you can execute the tests using JLTMDbClientTests scheme within Xcode.

Using xctool

  • Tests can also be run from the command line or within a continuous integration environment with xctool, which can be installed with Homebrew:
$ brew update
$ brew install xctool --HEAD

"JLTMDBClientTests requires xctool 0.1.14 or above"

  • Once xctool is installed, you can execute the tests via rake test.

Screenshot

Using XCPretty

  • Tests can also be run from the command line or within a continuous integration environment with XCPretty, which can be installed:
$ gem install xcpretty

"XCPretty requires Ruby 1.8.7 or above."

  • Once XCPretty is installed, you can execute the tests via make test or make ci.

Screenshot

Compatibility:

  • Compatible with iOS 7.0.
  • Does require ARC.

Dependencies:

License:

Contact:

jltmdbclient's People

Contributors

bitdeli-chef avatar bryant1410 avatar javilorbada avatar jibeex avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.