Hava Durumu Uygulaması - Temel Api Request

Overview

Hava Ne Durumda

Bu uygulama temelde apilerle nasıl çalışılır, apiden veri nasıl GET edilir gibi işlemleri anlamak için yapılmıştır.

Uygulama Fotoğrafları:

image1 image2 image3

Uygulamada api servisi olarak https://collectapi.com servisini kullandım. Siz de hava durumu apisine erişmek için aşağıdaki linke tıklayabilirsiniz.

https://collectapi.com/tr/api/weather/hava-durumu-api


Bilmeyen Arkadaşlar için Apiden veri çekerken sitenin size verdiği authorization

keyini header kısmında yollamanız gerekmektedir, aksi taktirde aşağıdaki hatayı alacaksınız.

unAuthorizedError

Bunu düzeltmek için GET metodunda şunlardan birini yazabilirsiniz:

await http.get(Uri.parse("https://api.collectapi.com/weather/getWeather?data.lang=tr&data.city=$city"), headers: {
      HttpHeaders.authorizationHeader: 'apikey YOURAPIKEYHEREYOURAPIKEYHEREYOURAPIKEYHERE',
      HttpHeaders.contentTypeHeader: 'application/json'
    });

Ya da

await http.get(Uri.parse("https://api.collectapi.com/weather/getWeather?data.lang=tr&data.city=$city"), headers: {
      "authorization": 'apikey YOURAPIKEYHEREYOURAPIKEYHEREYOURAPIKEYHERE',
      "content": 'application/json'
    });
You might also like...

A Flutter plugin to request the device unlock screen.

device_unlock A Flutter plugin to request the device unlock screen on Android and iOS. How does it work The following attempts and fallbacks are made:

Sep 7, 2022

A sample app of using the image_picker + path_provider and permission_handler package to request permission and store photos on mobile

A sample app of using the image_picker + path_provider and permission_handler package to request permission and store photos on mobile

image_picker_example A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you sta

Apr 19, 2022

A powerful Http client for Dart, which supports Interceptors, FormData, Request Cancellation, File Downloading, Timeout etc.

A powerful Http client for Dart, which supports Interceptors, FormData, Request Cancellation, File Downloading, Timeout etc.

Language: English | 中文简体 dio A powerful Http client for Dart, which supports Interceptors, Global configuration, FormData, Request Cancellation, File

Jan 3, 2023

Http request inspector for Flutter application

Http request inspector for  Flutter application

Alice Alice is an HTTP Inspector tool for Flutter which helps debugging http requests. It catches and stores http requests and responses, which can be

Dec 14, 2022

This repo contains a collection of permission related Flutter plugins which can be used to request permissions to access device resources in a cross-platform way.

Flutter Permission Plugins Deprecation Notice This repository has been replaced by the Flutter permission_handler plugin and will not longer be mainta

Dec 13, 2021

Simple and hackable request for dart

Simple and hackable request for dart

Simple and hackable request for dart

Sep 22, 2022

📖 A Guide for your first pull request

 📖 A Guide for your first pull request

📖 A Guide for your first pull request This project has been excluded by Hacktoberfest 2022 ✨ This project will help you to make your first pull reque

Dec 2, 2022

A CLI tool to verify the test coverage of a pull request only, ignoring the rest of the project

A CLI tool to verify the test coverage of a pull request only, ignoring the rest of the project

This is a CI tool that analyzes the coverage rate of a pull request, ignoring the lines that were not changed in the PR. Motivation The coverage rate

Dec 15, 2022

Bhagavad Gita app using flutter & Bhagavad-Gita-API is A lightweight Node.js based Bhagavad Gita API [An open source rest api on indian Vedic Scripture Shrimad Bhagavad Gita].

Bhagavad Gita app using flutter & Bhagavad-Gita-API is A lightweight Node.js based Bhagavad Gita API [An open source rest api on indian Vedic Scripture Shrimad Bhagavad Gita].

Gita Bhagavad Gita flutter app. Download App - Playstore Web Application About Bhagavad Gita app using flutter & Bhagavad-Gita-API is A lightweight No

Apr 5, 2022
Owner
Mehmet Ege Aydın
Software Dev.
Mehmet Ege Aydın
Permission plugin for Flutter. This plugin provides a cross-platform (iOS, Android) API to request and check permissions.

Flutter permission_handler plugin The Flutter permission_handler plugin is build following the federated plugin architecture. A detailed explanation o

Baseflow 1.7k Dec 31, 2022
Unloc customizations of the Permission plugin for Flutter. This plugin provides an API to request and check permissions.

Flutter Permission handler Plugin A permissions plugin for Flutter. This plugin provides a cross-platform (iOS, Android) API to request and check perm

Unloc 1 Nov 26, 2020
Flutter ile geliştirdiğim vücut kitle indeksi hesaplama uygulaması.

Vücut Kitle İndeksi Hesaplama Google'ın yeni teknolojilerinden biri olan Flutter'ı öğrenirken vücut kitle indeksi hesaplayan küçük çaplı bir uygulama

Emirhan Bülbül 1 Oct 15, 2021
ESOGU YemekhaneMenü Uygulaması

oguyem ESOGU Yemekhane Uygulaması Getting Started This project is a starting point for a Flutter application. A few resources to get you started if th

Orhan İNAÇ 1 Oct 26, 2021
Mezun öğrencilerin kayıt olup paylaşım yapabileceği sosyal medya uygulaması

flutter_appproje A new Flutter application. Getting Started This project is a starting point for a Flutter application. A few resources to get you sta

Şükrü Berat Görür 0 Dec 26, 2021
Shared Preferences ile ekran açılma sayacı uygulaması

sayac_uygulamasi A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you started

null 0 Dec 29, 2021
Aktuel-Brosurler - Flutter ile Yapılmış Aktüel Broşür Uygulaması

Merhaba, Ben Berkan Büyük ! Mobile Developer alanında kendimi geliştiriyor, kariyerimi yazılım odaklı kurmaya çalışıyorum. ⁉️ Proje Hakkında ⁉️ - Bu A

Berkan Büyük 1 Feb 16, 2022
Flutter Dart Şirket Rehber Uygulaması

Flutter Dart Şirket Rehber Uygulaması Bu uygulamam da bir firmanın rehberini tutmak istedim. Firma Rehberi olan uygulamam da kişilerin departmanı, hak

Oğuzhan Sadıkoğlu 5 Sep 16, 2022
Flutter Dart Sağlık Uygulaması

Flutter Dart Sağlık Uygulaması Uygulama içerisinde Beden kitle hesabı ve kalori hesabı yapılmaktadır. Uygulamanın içerisinde besin bilgileri yer almak

Oğuzhan Sadıkoğlu 6 Sep 16, 2022
A powerful Http client for Dart, which supports Interceptors, FormData, Request Cancellation, File Downloading, Timeout etc.

dio_http A powerful Http client for Dart, which supports Interceptors, Global configuration, FormData, Request Cancellation, File downloading, Timeout

null 46 Dec 19, 2021