Тёмный

Retrofit Android Tutorial for Beginners with Kotlin 

Daniel Talks Code
Подписаться 332
Просмотров 5 тыс.
50% 1

Learn the basics of making API calls with one of the most popular HTTP clients for #android using #kotlin.
Consider Subscribing 🤩
/ @danieltalkscode
Retrofit: square.github....
Moshi: github.com/squ...
OKHttpInterceptor: github.com/squ...
Wizard World API: github.com/Mos...
JSON to Kotlin Plugin for Android Studio: plugins.jetbra...
-----
The Android robot is reproduced or modified from work created and shared by Google and used according to terms described in the Creative Commons 3.0 Attribution License.

Опубликовано:

 

17 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 17   
@fixitman5453
@fixitman5453 6 месяцев назад
EXACTLY what I was looking for! Thank you!
@MrACrazyHobo
@MrACrazyHobo Месяц назад
Thank you so much for using modern android technologies (ie jetpack compose)
@thanakornsrisuwan2498
@thanakornsrisuwan2498 8 месяцев назад
Hello Daniel, Can you make tutorial from Rapid Api Please 🙏
@scottbiggs8894
@scottbiggs8894 2 месяца назад
After following the video, I keep getting crashes when I try to run at the 12:15 mark. From the logs, it looks like there's an infinite loop happening somewhere in the retrofit code. Anyone else? And is there anyway to see the actual code so I'll know I typed (and translated when the code was old, ie build.gradle) correctly?
@rodrigogarcia3904
@rodrigogarcia3904 2 месяца назад
I was getting an error about invoking viewModel() in the MainActivity, but it fixed after manually adding the import at the top of MainActivity. import androidx.lifecycle.viewmodel.compose.viewModel
@danielsgrunge
@danielsgrunge 6 месяцев назад
Thank you so much fellow Daniel 😅
@danieltalkscode
@danieltalkscode 6 месяцев назад
Thank you Daniel ☺️
@arjinkavalci172
@arjinkavalci172 5 месяцев назад
Do we need to authorize first, if we want to make PUT operation?
@danieltalkscode
@danieltalkscode 4 месяца назад
Yes, typically you need to authorize to make a PUT http operation. This is because a PUT request is often used to update or replace a resource on a server, which can have significant implications for data integrity and security.
@arjinkavalci172
@arjinkavalci172 4 месяца назад
@@danieltalkscode thanks now i understand, but how can i authanticate on android side just like swagger? I heard that i should pass jwToken value as an header? Is it the correct way?
@danieltalkscode
@danieltalkscode 4 месяца назад
Sure! That's one of the common ways to authenticate. Save the JWT token in SharedPreferences after login, then use an OkHttp Interceptor with Retrofit to add the token to each request's header. This way, all requests will include the JWT for authentication.
@arjinkavalci172
@arjinkavalci172 4 месяца назад
@@danieltalkscode thank you for help, I can handle it now 🙏🏻
@giapxuan4208
@giapxuan4208 5 месяцев назад
Nice. Thanks for all sir
@jamaal1282
@jamaal1282 10 месяцев назад
Hi could you add Unit Tests and espresso tests to the to do app please?
Далее
Собираю Маню к осени ✨
00:48
Просмотров 1,1 млн
РЫБКА С ПИВОМ
00:39
Просмотров 1,5 млн
Kotlin Coroutines 101 - Android Conference Talks
24:49
Просмотров 136 тыс.
The Ultimate Retrofit Crash Course
34:49
Просмотров 94 тыс.
Clean Architecture Explained - (Android Full Tutorial)
39:52
DataBinding Tutorial for Beginners
17:03
Просмотров 129