Retrofit basics tutorial with WordPress - Android example in Kotlin

preview_player
Показать описание
In this Android tutorial I gonna show you the basics of the usage of the Retrofit library.
This tutorial is written in Kotlin.
In this example we are going to connect our app to an example, but real WordPress site's database and first register, then fetch the users.

Retrofit is a REST Client for Android and Java by Square. With the help of it we can quite easily retrieve and upload JSON (or other structured data) using a REST based webservice.

We can configure in Retrofit the converter, which is used for the data serialization. In this tutorial we are going to use Gson, but eg Moshi is also a great choice.

Retrofit uses the OkHttp library for HTTP requests. OkHTTP is an open source project designed to be an efficient HTTP client.

Check out under the link the whole tutorial.
Have fun :)
Рекомендации по теме
visit shbcf.ru