ã¯ããã« OkHttpã®ãã¼ã¸ã§ã³ãï¼ã«ãªãããã¤ãå¤æ´ç¹ãããã¾ããã®ã§å¤æ´ç¹ãå«ãã¦OkHttpã®ä½¿ãæ¹ããç´¹ä»ãã¾ãã Rxã使ããã·ã³ãã«ã«OkHttpã ãã§éä¿¡å¦çããã¦ãã¾ãã ä»åããã¤ãã¨åãopenweathermapã使ã£ã¦ãã¾ãã OkHttpï¼ã¨OkHttp3ã®éã ã¾ã OkHttpã®ä½¿ãæ¹ã®ããããã§ãã - Requestãªãã¸ã§ã¯ãä½ã - OkHttpãªãã¸ã§ã¯ãä½ã - enqueue()ã¡ã½ããã«ã³ã¼ã«ããã¯ãå®ç¾©ãã [OkHttp2] Request request = new Request.Builder() .url("http://api.openweathermap.org/data/2.5/weather?id=2172797&APPID=464b981be2248f383ab898810xxxxxxx") .get() .build(
{{#tags}}- {{label}}
{{/tags}}