Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
How To Consume Api On Android Using Retrofit - ...
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
AndroidDev Surabaya
May 18, 2018
Programming
92
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
How To Consume Api On Android Using Retrofit - Meetup AndroidDev Surabaya #8
Menjelaskan bagaimana cara menggunakan Retrofit dalam mengelola REST API.
AndroidDev Surabaya
May 18, 2018
More Decks by AndroidDev Surabaya
See All by AndroidDev Surabaya
Meetup Desember : AndroidDev Surabaya Overview
androiddevsurabaya
0
68
MVVM Architecture with Room
androiddevsurabaya
0
99
Android : Easy Phone Authentication using Firebase
androiddevsurabaya
0
87
Mengatur Tampilan dan Tata Letak di Android
androiddevsurabaya
0
120
Build More with KOTLIN Anko | AndroidDevSBY Meetup 11
androiddevsurabaya
0
140
The Magic of Kotlin
androiddevsurabaya
0
210
BE AN ANDROID EXPERT - AndroidDev Surabaya Meetup #9
androiddevsurabaya
0
160
#KartiniZamanNow - Meetup AndroidDev SBY #7
androiddevsurabaya
0
110
Learn Android UI #4 - Meetup AndroidDev Surabaya #7
androiddevsurabaya
0
150
Other Decks in Programming
See All in Programming
Modernizing iOS Apps
seyfoyun
0
120
GraphQL の onError と Nullability のこれから
quramy
0
180
あなたの await、OS まで届いてる? strace で覗く JavaScript の非同期
hasutosasaki
1
1.5k
React Native에 현대적인 빌드 도구 더하기: Rollipop 구현기
leegeunhyeok
0
150
AI時代のTerminal環境を UNIX哲学で設計・運用する
yasunori0418
1
250
Compiling a real-world CLI tool to native with Static Hermes
tmikov2023
0
130
Vapor Mode でアクセシビリティは 壊れないか検証した話
fuqda
1
170
When benchmarks go bad - what I learned from measuring performance wrong
hollycummins
0
240
PumaからFalconに移行したRailsアプリケーションでの実践
falcon8823
0
250
最近”作らせてる” ローカルAIアプリの話
akit37
0
500
クラウドエージェントは、 何がそんなに便利なのか / what makes cloud agents so useful
rkaga
3
560
ChromeでローカルLLM
ryu1013
0
160
Featured
See All Featured
Navigating the Design Leadership Dip - Product Design Week Design Leaders+ Conference 2024
apolaine
2
490
Paper Plane (Part 1)
katiecoart
PRO
2
12k
The Limits of Empathy - UXLibs8
cassininazir
2
730
Winning Ecommerce Organic Search in an AI Era - #searchnstuff2025
aleyda
2
2.2k
DevOps and Value Stream Thinking: Enabling flow, efficiency and business value
helenjbeal
2
410
Ethics towards AI in product and experience design
skipperchong
2
440
Java REST API Framework Comparison - PWX 2021
mraible
34
9.8k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
35
2.6k
A Guide to Academic Writing Using Generative AI - A Workshop
ks91
PRO
1
530
For a Future-Friendly Web
brad_frost
184
10k
Getting science done with accelerated Python computing platforms
jacobtomlinson
2
550
JAMstack: Web Apps at Ludicrous Speed - All Things Open 2022
reverentgeek
1
650
Transcript
How To Consume Api On Android Using Retrofit By: Akhmad
Naufal Refandi
Akhmad Naufal Refandi Android Developer Email :
[email protected]
Retrofit • Library REST client untuk Android yang mengubah API
endpoint menjadi sebuah Java interface API service
Method - POST - GET - DELETE - PUT
Method GET @Path : https://api.themoviedb.org/3/movie/{movie_id}? api_key=<<api_key>>&language=en-US @Query : https://api.themoviedb.org/3/movie/{movie_id}? api_key=<<api_key>>&language=en-US
POST • @Field • @Body
Let’s Start Yang perlu disiapkan : - Niat - Laptop
sudah terinstall Android Studio dan sudah terkoneksi dengan Internet
Library yang dibutuhkan implementation 'com.android.support:appcompat-v7:27.1.1' implementation 'com.android.support:design:27.1.1' implementation 'com.android.support:cardview-v7:27.1.1' implementation
'com.android.support:support-v4:27.1.1' implementation 'com.android.support:recyclerview-v7:27.1.1' implementation 'com.android.support:cardview-v7:27.1.1' implementation 'com.android.support.constraint:constraint-layout:1.1.0’ implementation 'com.jakewharton:butterknife:8.8.1' implementation 'com.intuit.sdp:sdp-android:1.0.4’ implementation 'com.squareup.okhttp3:okhttp:3.8.1' implementation 'com.squareup.okhttp3:logging-interceptor:3.8.1' implementation 'com.squareup.retrofit2:retrofit:2.3.0' implementation 'com.squareup.retrofit2:converter-gson:2.3.0’ annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'