Giter Site home page Giter Site logo

Comments (5)

gkye avatar gkye commented on August 18, 2024 1

Hello @AegerBorder, I haven't pushed a new update to the CocoaPods yet (will do later today). For now you can use the project directly manually or add pod 'TMDBSwift', :git => 'https://github.com/gkye/TheMovieDatabaseSwiftWrapper' to your Podfile

from themoviedatabaseswiftwrapper.

AegerBorder avatar AegerBorder commented on August 18, 2024

Hi @gkye, thanks a lot. I updated the Podfile and ran the app without a single warning or error.
Now I have to figure out how to use this thing, haha. Thanks for that quick reply.

from themoviedatabaseswiftwrapper.

AegerBorder avatar AegerBorder commented on August 18, 2024

Hm... I wanted to try one of your examples in movie and put this in my ViewController.swift (apikey isn't real...)

MovieMDB.movie(6812cfd24edc653261edf0a135449576, movieID: 7984, language: "de") {
            apiReturn, movie in
            if let movie = movie{
                print(movie.title)
                print(movie.revenue)
                print(movie.genres[0].name)
                print(movie.production_companies?[0].name)
            }
        }
    }

There's an error saying:
"Expected a digit after integer literal prefix"

This error describes the letter c after the fourth apikey-number.
It also wants me to add a String after the apikey.

Did I just got it wrong to paste my key over "apikey"?

from themoviedatabaseswiftwrapper.

AegerBorder avatar AegerBorder commented on August 18, 2024

Changed the code a bit to:

MovieMDB.movie("6812cfd24edc653261edf0a135449576", movieID: 7984, language: "de") {
            apiReturn, movie in
            if let movie = movie{
                print(movie.title!)
                print(movie.revenue!)
                print(movie.genres[0].name!)
                print(movie.production_companies?[0].name! as Any)
            }
        }

Works with this changes but movie.production_companies?[0].name! as Any is "nil"

from themoviedatabaseswiftwrapper.

gkye avatar gkye commented on August 18, 2024

production_companies is an optional value (there’s a chance it might be empty)

from themoviedatabaseswiftwrapper.

Related Issues (20)

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.