Pragmatic Flutter: Building Cross-Platform Mobile Apps for Android, iOS, Web, & Desktop by Priyanka Tyagi
Author:Priyanka Tyagi
Language: eng
Format: epub
Publisher: CRC Press
Published: 2021-06-14T00:00:00+00:00
12
Integrating REST API
This chapter is an introduction to fetching data from a remote REST (Representational state transfer) API (Application Programming Interface) in a Flutter app. The Representational state transfer is a software architectural style for an API that uses less bandwidth for data transfer. It uses HTTP requests to access data. You'll learn how to access The Google Books API (Books API v1 (Experimental)) to fetch books listing for the given criteria. The Google Books API allows to view booksâ data in JSON representation (JSON Representation) over the HTTP. The JavaScript Object Notation (JSON) is a type of data interchange format. The JSON format is a programming language that is independent and text-based. It uses key/value pairs to store information and is human-readable.
Google Books (Google Books) is an effort to digitize the world's books. The Google Books API lets developers search books based on content. We will use this API to search books that match specific criteria and fetch book listings using this REST API. Once we have data available, we will render the raw JSON formatted data in a simple Flutter user interface. We will touch base on setting up an API key on Google API Console, and use Books API. We will dive into API details and learn how to make a REST API call to fetch results and display it in a Flutter app.
By the end of this chapter, you'll have a good understanding of getting your own API key from Google API Console. You will use this API key to make a REST call to fetch book listings. Finally, you will learn to display the raw JSON response returned from API in a Flutter widget.
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
How to Build Android Apps with Kotlin by Alex Forrester Eran Boudjnah Alexandru Dumbravan and Jomar Tigcal(2053)
Android Studio Arctic Fox Essentials - Kotlin Edition by Smyth Neil;(1906)
Learn SwiftUI for iOS 13 by Unknown(927)
Android Studio 4. 1 Development Essentials - Kotlin Edition by Smyth Neil;(669)
Windows 10: The Missing Manual by Pogue David(529)
Android Smartphone Photography For Dummies by Mark Hemmings(521)
iPad Application Development For Dummies by Neal Goldstein(459)
Kotlin And Android: Learn To Architect And Develop Android Apps In The Kotlin Programming Language: Android Development With Kotlin by Murdoch Reuben(454)
Amazing Android Apps For Dummies by Begun Daniel A(412)
Android Phones for Dummies by Gookin Dan;(409)
Apple Watch For Dummies by Unknown(399)
Mobile Photography by Scott La Counte(378)
Android Q&A: Android Questions & Answers by Exponential Mobile(360)
Android Q&A by Exponential Mobile(350)
Android for Absolute Beginners by Grant Allen(337)
Kotlin and Android Development featuring Jetpack by Michael Fazio(294)
iPad User Guide by Apple Inc(293)
Programming Kotlin: Enhance your skills for Android development using Kotlin by Aronowitz Alexander & lnc NLN(287)
Programming Kotlin: Enhance your skills for Android development using Kotlin by Alexander Aronowitz & NLN lnc(280)
