2 "name": "RxOpenWeatherMap",
4 "summary": "Basic Open Weather Map API handling response data to observable decodable objects with RxSwift",
5 "description": "## Installation\nSimply add RxOpenWeatherMap into your Podfile\n```\npod 'RxOpenWeatherMap'\n```\n\n## Usage\nDeclare a OpenWeatherClient with your api key, the specific temperature unit (.celsius, .fahrenheit, .kelvin), and the optional specific language code. Then message the client to request an API call. Currently OpenWeatherClient supports two API calls - one call to get weather data and direct geocoding to get location info. Each API call returns RxSwift.Observable<Decodable>, which you can subscribe.\n \n```\nimport RxSwift\nimport RxCocoa\nimport RxOpenWeatherMap\n\nlet disposeBag = DisposeBag()\nlet weather = PublishSubject<OneCallResponse>()\n\ndo {\n try OpenWeatherClient(apiKey: \"PUT_YOUR_API_KEY_HERE\",\n temperatureUnit: .celsius,\n language: Locale.current.languageCode)\n .oneCall(latitude: 25.234, longitude: -123.432)\n .bind(to: weather)\n .disposed(by: disposeBag)\n } catch {\n print(error.localizedDescription)\n }\n```",
6 "homepage": "https://github.com/greenerchen/RxOpenWeatherMap",
9 "Greener Chen": "greener@gmail.com"
14 "swift_versions": "5.0",
16 "git": "https://github.com/greenerchen/RxOpenWeatherMap.git",
21 "Classes/**/*.{h,m,swift}"
23 "exclude_files": "Classes/Exclude",
35 "swift_version": "5.0"