Retrofit: Love Working With Apis On Android

Retrofit: Love Working With Apis On Android
by Marcus Pöhls / / / PDF


Read Online 1.5 MB Download


We cover all topics from the blog post series and additionally add more explanations to each topic and the examplary code snippets. Besides the explanations, you’ll get additional topics on OAuth handling (refresh your access token) and how to mock a API endpoints on Android side. This book is for beginners and advanced readers as well. We’ll walk you through each topic with direct reference to code examples. What Topics Are Covered in This Book? The list below provides a comprehensive overview of covered topicS within the book. Introduction to Retrofit Getting started and create a sustainable Android REST client Handling Authentication on Android (besides OAuth, we show basic and token authentication) Managing and manipulating requests Response handling and how to apply response converter File upload App release preparation including ProGuard configuration Who Is This Book For? This book is for Android developers who want to get an substantial overview and reference book of Retrofit. You’ll benefit from the clearly recognizable code examples in regard to your daily work with Retrofit. Rookie If you’re just starting out with Retrofit (or coming from any other HTTP library like Android Asynchronous Http Client) this book will show you all important parts on how to create durable REST clients. The provided code snippets let you jumpstart and create your first successful API client within minutes. Expert You already worked with Retrofit before? You’ll profit from our extensive code snippets and can improve your existing code base. Additionally, the book illustrates various use cases for different functionalities and setups like authentication against different backends, request composition and file uploads.

views: 680