Swiftpack.co - jorgifumi/OpenWeatherMapAPI as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by jorgifumi.
jorgifumi/OpenWeatherMapAPI 0.0.2
OpenWeather API Client
⭐️ 0
🕓 3 years ago
iOS
.package(url: "https://github.com/jorgifumi/OpenWeatherMapAPI.git", from: "0.0.2")

LinkedIn


OpenWeatherMapAPI



Report Bug · Request Feature

OpenWeatherMapAPI

OpenWeatherMapAPI is an API Client to deal with the free version of the API in your iOS Apps in a reactive way using Combine.

Built With

Installation

Requirements

  • iOS 13
  • Xcode 12+
  • Swift 5.3+

Swift Package Manager

The Swift Package Manager is a tool for automating the distribution of Swift code.

Select File > Swift Packages > Add Package Dependency. Enter https://github.com/jorgifumi/OpenWeatherMapAPI.git in the "Choose Package Repository" dialog.

Usage

First:

import OpenWeatherMapAPI

Then you can create an instance and make requests:

let apiClient = OpenWeatherMapAPI.initialize(apiKey: "YOUR_API_KEY")

apiClient.load(Resource<CurrentWeatherResponse>.current(latitude: 1.546, longitude: 5.454))

Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the MIT License.

Contact

Jorge Lucena - @jorgifumi - [email protected]

Project Link: https://github.com/jorgifumi/OpenWeatherMapAPI

GitHub

link
Stars: 0
Last commit: 3 years ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics