Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
How To Consume Api On Android Using Retrofit - ...
Search
AndroidDev Surabaya
May 18, 2018
Programming
78
1
Share
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
58
MVVM Architecture with Room
androiddevsurabaya
0
87
Android : Easy Phone Authentication using Firebase
androiddevsurabaya
0
75
Mengatur Tampilan dan Tata Letak di Android
androiddevsurabaya
0
110
Build More with KOTLIN Anko | AndroidDevSBY Meetup 11
androiddevsurabaya
0
130
The Magic of Kotlin
androiddevsurabaya
0
170
BE AN ANDROID EXPERT - AndroidDev Surabaya Meetup #9
androiddevsurabaya
0
150
#KartiniZamanNow - Meetup AndroidDev SBY #7
androiddevsurabaya
0
96
Learn Android UI #4 - Meetup AndroidDev Surabaya #7
androiddevsurabaya
0
140
Other Decks in Programming
See All in Programming
TypeScriptだけでAIエージェントを作る フロント・エージェント・インフラのフルスタック実践
har1101
6
1.2k
AI駆動開発で崩れていくコードベースを立て直す
kyoko_nr_nr
1
400
初めてのRubyKaigiはこう見えた
jellyfish700
0
360
Spec-Driven Development with AI-Agents: From High-Level Requirements to Working Software
antonarhipov
2
400
ビジネスモデルから紐解く、AI+型駆動開発
hirokiomote
2
4.5k
「エンジニアインターン、どうやって取った?」準備のリアルを語るLT会 Progate BAR
akiomatic
0
100
誰も頼んでない機能を出荷した話
zekutax
0
150
Transactional Change Stream Processing With Debezium and Apache Flink
gunnarmorling
1
140
Lemonade + Foundry Toolkit でお手軽アプリ開発
seosoft
1
250
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
400
AI 時代のソフトウェア設計の学び方
masuda220
PRO
29
11k
密結合なバックエンドから TypeScript のコードを生成する
kemuridama
1
390
Featured
See All Featured
HDC tutorial
michielstock
2
680
We Have a Design System, Now What?
morganepeng
55
8.2k
The AI Search Optimization Roadmap by Aleyda Solis
aleyda
1
5.8k
The SEO identity crisis: Don't let AI make you average
varn
0
480
Winning Ecommerce Organic Search in an AI Era - #searchnstuff2025
aleyda
1
2k
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
11
930
How to Get Subject Matter Experts Bought In and Actively Contributing to SEO & PR Initiatives.
livdayseo
0
130
Into the Great Unknown - MozCon
thekraken
41
2.5k
Writing Fast Ruby
sferik
630
63k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
122
22k
From Legacy to Launchpad: Building Startup-Ready Communities
dugsong
0
220
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
2.8k
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'