Skip to content

hanisa1/NetworkingWeatherstack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

Networking With Weatherstack API ⏳

Networking with the Weatherstack API with (Async/ Await)

Overview

This project demonstrates how to interact with the Weatherstack API to fetch real-time weather data. It's designed to help developers understand the process of making network requests and handling responses from a weather data provider.

Features

  • Current Weather Data: Retrieve real-time weather information for any location worldwide.
  • API Integration: Learn how to integrate and authenticate with the Weatherstack API.
  • JSON Parsing: Understand how to parse JSON responses to extract relevant weather details.

Getting Started

Prerequisites

Installation

git clone https://github.com/hanisa1/NetworkingWeatherstack.git
cd NetworkingWeatherstack

Then open NetworkingWeatherstack.xcodeproj in Xcode.

Configuration

  1. Obtain an API Key
    Sign up at Weatherstack to get a free API key.

  2. Configure the API Key
    In the project, locate the NetworkManager. Replace the API Key with your key:

    let weatherstackAPIKey = "YOUR_API_KEY_HERE"

Dependencies

This project uses Swift’s native URLSession for networking. No external libraries are required.

License

This project is licensed under the MIT License.

Note: Always keep your API keys safe. Avoid committing them directly to public repositories.

About

This project demonstrates how to fetch and display real-time weather data using the Weatherstack API and async/await. It's ideal for developers make network requests in Swift, handle JSON responses, and build clean, API-driven apps.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages