Upgrade to Pro — share decks privately, control downloads, hide ads and more …

kotlin season 1 - Part 13 Retrofit 소개

TaeHwan
November 10, 2016

kotlin season 1 - Part 13 Retrofit 소개

2016년 유데미 Kotlin 강의를 공개합니다.

영상 :
PPT :

2회 분은 유데미에서 확인 가능합니다.
http://bit.ly/2UpaJUR

TaeHwan

November 10, 2016
Tweet

More Decks by TaeHwan

Other Decks in Education

Transcript

  1. ࢠ೒ ௏٘ח!!! 4 Sample Code GitHub ࠳۠஖ : 08-Retrofit-Intro 4

    https://github.com/taehwandev/Kotlin-Udemy- Sample/tree/08-Retrofit-intro ରࣁ؀ উ٘۽੉٘ ѐߊ ঱য ௏ౣܽ, द੘ೞӝ thdev.tech, 2016 2
  2. য়ט ೡ ࠗ࠙ 4 Retrofit ࣗѐ 4 Retrofit Introduction 4

    Flickr API ࣗѐ 4 Retrofit ࢠ೒ ੸ਊ ରࣁ؀ উ٘۽੉٘ ѐߊ ঱য ௏ౣܽ, द੘ೞӝ thdev.tech, 2016 3
  3. Retrofit ࣗѐ 4 Squareীࢲ ߓನೞח HTTP REST API 4 A

    type-safe HTTP client for Android and Java ରࣁ؀ উ٘۽੉٘ ѐߊ ঱য ௏ౣܽ, द੘ೞӝ thdev.tech, 2016 5
  4. Retrofit ࣗѐ 4 Retrofit API കಕ੉૑ 4 Retrofit github ରࣁ؀

    উ٘۽੉٘ ѐߊ ঱য ௏ౣܽ, द੘ೞӝ thdev.tech, 2016 6
  5. Retrofit ࣗѐ 4 HTTPܳ ాೠ ాन 4 Json/XML ؘ੉ఠ੄ ౵यਸ

    ઁҕ 4 HTTP ઺ য়ܨী ؀ೠ ୊ܻ 4 ׮઺ ਃ୒ ߂ ౵ੌ স۽٘ ӝמ ઁҕ ରࣁ؀ উ٘۽੉٘ ѐߊ ঱য ௏ౣܽ, द੘ೞӝ thdev.tech, 2016 7
  6. Retrofit Introduction 4 Retrofitਸ ࢎਊೞӝ ਤೠ interface ੿੄ public interface

    GitHubService { @GET("users/{user}/repos") Call<List<Repo>> listRepos(@Path("user") String user); } ରࣁ؀ উ٘۽੉٘ ѐߊ ঱য ௏ౣܽ, द੘ೞӝ thdev.tech, 2016 9
  7. Retrofit Introduction 4 Retrofitਸ ୡӝച Retrofit retrofit = new Retrofit.Builder()

    .baseUrl("https://api.github.com/") .build(); GitHubService service = retrofit.create(GitHubService.class); ରࣁ؀ উ٘۽੉٘ ѐߊ ঱য ௏ౣܽ, द੘ೞӝ thdev.tech, 2016 10
  8. Retrofit Introduction 4 ࢎਊೡ ࠗ࠙ীࢲ ׮਺җ э੉ ഐ୹ೠ׮. Call<List<Repo>> repos

    = service.listRepos("octocat"); ରࣁ؀ উ٘۽੉٘ ѐߊ ঱য ௏ౣܽ, द੘ೞӝ thdev.tech, 2016 11
  9. Flickr੄ ࢎ૓ API ࢎਊೞӝ 4 Flickr API ః ࢤࢿ 4

    flickr.interestingness.getList ࢎਊ ରࣁ؀ উ٘۽੉٘ ѐߊ ঱য ௏ౣܽ, द੘ೞӝ thdev.tech, 2016 12
  10. Retrofitীࢲ ۽Ӓ ೣԋ ࠁӝ 4 OkHttp 4 Logging Interceptor ରࣁ؀

    উ٘۽੉٘ ѐߊ ঱য ௏ౣܽ, द੘ೞӝ thdev.tech, 2016 14
  11. ଵҊ੗ܐ 4 Retrofit API കಕ੉૑ 4 Retrofit github 4 Flickr

    API ః ࢤࢿ 4 flickr.interestingness.getList ࢎਊ ରࣁ؀ উ٘۽੉٘ ѐߊ ঱য ௏ౣܽ, द੘ೞӝ thdev.tech, 2016 16