{"action":"created","issue":{"url":"https://api.github.com/repos/gkye/TheMovieDatabaseSwiftWrapper/issues/14","repository_url":"https://api.github.com/repos/gkye/TheMovieDatabaseSwiftWrapper","labels_url":"https://api.github.com/repos/gkye/TheMovieDatabaseSwiftWrapper/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/gkye/TheMovieDatabaseSwiftWrapper/issues/14/comments","events_url":"https://api.github.com/repos/gkye/TheMovieDatabaseSwiftWrapper/issues/14/events","html_url":"https://github.com/gkye/TheMovieDatabaseSwiftWrapper/issues/14","id":184911399,"number":14,"title":"ClientReturn has no member MBDBReturn","user":{"login":"Treverr","id":5624521,"avatar_url":"https://avatars.githubusercontent.com/u/5624521?v=3","gravatar_id":"","url":"https://api.github.com/users/Treverr","html_url":"https://github.com/Treverr","followers_url":"https://api.github.com/users/Treverr/followers","following_url":"https://api.github.com/users/Treverr/following{/other_user}","gists_url":"https://api.github.com/users/Treverr/gists{/gist_id}","starred_url":"https://api.github.com/users/Treverr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Treverr/subscriptions","organizations_url":"https://api.github.com/users/Treverr/orgs","repos_url":"https://api.github.com/users/Treverr/repos","events_url":"https://api.github.com/users/Treverr/events{/privacy}","received_events_url":"https://api.github.com/users/Treverr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-24T17:59:27Z","updated_at":"2016-10-24T18:25:02Z","closed_at":null,"body":"When using your Wiki code\r\n\r\n```\r\n        DiscoverMDB.discover(apiKey, discoverType: \"tv\", language: nil){\r\n            apiReturn in\r\n            let tvshows = apiReturn.MBDBReturn as! [TVMDB]\r\n            print(tvshows[0].name)\r\n            print(tvshows[0].overview)\r\n            print(tvshows[0].popularity)\r\n        }\r\n```\r\n\r\nI get that ClientReturn has no member MBDBReturn?"},"comment":{"url":"https://api.github.com/repos/gkye/TheMovieDatabaseSwiftWrapper/issues/comments/255823827","html_url":"https://github.com/gkye/TheMovieDatabaseSwiftWrapper/issues/14#issuecomment-255823827","issue_url":"https://api.github.com/repos/gkye/TheMovieDatabaseSwiftWrapper/issues/14","id":255823827,"user":{"login":"gkye","id":14007152,"avatar_url":"https://avatars.githubusercontent.com/u/14007152?v=3","gravatar_id":"","url":"https://api.github.com/users/gkye","html_url":"https://github.com/gkye","followers_url":"https://api.github.com/users/gkye/followers","following_url":"https://api.github.com/users/gkye/following{/other_user}","gists_url":"https://api.github.com/users/gkye/gists{/gist_id}","starred_url":"https://api.github.com/users/gkye/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gkye/subscriptions","organizations_url":"https://api.github.com/users/gkye/orgs","repos_url":"https://api.github.com/users/gkye/repos","events_url":"https://api.github.com/users/gkye/events{/privacy}","received_events_url":"https://api.github.com/users/gkye/received_events","type":"User","site_admin":false},"created_at":"2016-10-24T18:25:02Z","updated_at":"2016-10-24T18:25:02Z","body":"The wiki is outdated since updating to `swift3` i will update them soon. \r\nSince discover can return both a movie or tv results you will have to initialize the array manual. \r\n```swift\r\n    DiscoverMDB.discover(\"key\", discoverType: \"tv\", language: nil){\r\n      apiReturn in\r\n      let tvshows = TVMDB(results: apiReturn.json![\"results\"][0])\r\n      dump(tvshows)\r\n    }\r\n```\r\nor you could you use \r\n```swift\r\n    DiscoverTVMDB.discoverTV(\"\", first_air_date_year: nil, first_air_date_gte: nil, first_air_date_lte: nil, air_date_gte: nil, air_date_lte: nil, language: \"en\", sort_by: nil, page: 1, timezone: nil){\r\n      let shows = $0.1\r\n    }\r\n```\r\nIf you want specific tv results you could use the functions available in `TVMDB` \r\n\r\nThey seems to be an issue with using the default parameters as stated in https://github.com/gkye/TheMovieDatabaseSwiftWrapper/issues/13 i will look into it an fix it soon"}}
{"actor":{"display_login":"gkye"}}