{"id":925,"date":"2022-09-23T02:39:35","date_gmt":"2022-12-06T00:51:44","guid":{"rendered":"https:\/\/www.silicloud.com\/ja\/blog\/index.php\/2023\/11\/30\/%e3%82%a2%e3%83%b3%e3%83%89%e3%83%ad%e3%82%a4%e3%83%89%e3%81%ae%e3%83%ac%e3%83%88%e3%83%ad%e3%83%95%e3%82%a3%e3%83%83%e3%83%88%e3%81%ae%e4%be%8b%e3%81%ae%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa\/"},"modified":"2025-08-01T03:35:28","modified_gmt":"2025-07-31T18:35:28","slug":"%e3%82%a2%e3%83%b3%e3%83%89%e3%83%ad%e3%82%a4%e3%83%89%e3%81%ae%e3%83%ac%e3%83%88%e3%83%ad%e3%83%95%e3%82%a3%e3%83%83%e3%83%88%e3%81%ae%e4%be%8b%e3%81%ae%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/ja\/blog\/%e3%82%a2%e3%83%b3%e3%83%89%e3%83%ad%e3%82%a4%e3%83%89%e3%81%ae%e3%83%ac%e3%83%88%e3%83%ad%e3%83%95%e3%82%a3%e3%83%83%e3%83%88%e3%81%ae%e4%be%8b%e3%81%ae%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa\/","title":{"rendered":"\u30a2\u30f3\u30c9\u30ed\u30a4\u30c9\u306e\u30ec\u30c8\u30ed\u30d5\u30a3\u30c3\u30c8\u306e\u4f8b\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb"},"content":{"rendered":"<p>\u300cRetrofit Android\u306e\u5b9f\u4f8b\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3078\u3088\u3046\u3053\u305d\u3002\u4eca\u65e5\u306f\u3001Square\u304c\u958b\u767a\u3057\u305fRetrofit\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u7528\u3057\u3066\u3001Android\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u5185\u3067REST API\u547c\u3073\u51fa\u3057\u3092\u51e6\u7406\u3057\u307e\u3059\u3002\u300d<\/p>\n<h3>\u30a2\u30f3\u30c9\u30ed\u30a4\u30c9\u306e\u6539\u4fee<\/h3>\n<p>Retrofit\u306fAndroid\u3068Java\u306e\u305f\u3081\u306e\u30bf\u30a4\u30d7\u30bb\u30fc\u30d5\u306aREST\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3067\u3042\u308a\u3001RESTful\u306aWeb\u30b5\u30fc\u30d3\u30b9\u306e\u6d88\u8cbb\u3092\u5bb9\u6613\u306b\u3059\u308b\u3053\u3068\u3092\u76ee\u6307\u3057\u3066\u3044\u307e\u3059\u3002Retrofit 1.x\u306e\u8a73\u7d30\u306b\u306f\u89e6\u308c\u305a\u3001\u65b0\u3057\u3044\u6a5f\u80fd\u3068\u4ee5\u524d\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3068\u6bd4\u8f03\u3057\u3066\u5909\u66f4\u3055\u308c\u305f\u5185\u90e8API\u3092\u6301\u3064Retrofit 2\u306b\u76f4\u63a5\u79fb\u308a\u307e\u3059\u3002Retrofit 2\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u30cd\u30c3\u30c8\u30ef\u30fc\u30ad\u30f3\u30b0\u30ec\u30a4\u30e4\u30fc\u3068\u3057\u3066OkHttp\u3092\u6d3b\u7528\u3057\u3001\u305d\u308c\u306e\u4e0a\u306b\u69cb\u7bc9\u3055\u308c\u3066\u3044\u307e\u3059\u3002Retrofit\u306f\u3001JSON\u30ec\u30b9\u30dd\u30f3\u30b9\u3092POJO\uff08Plain Old Java Object\uff09\u3092\u4f7f\u7528\u3057\u3066\u81ea\u52d5\u7684\u306b\u30b7\u30ea\u30a2\u30e9\u30a4\u30ba\u3057\u307e\u3059\u304c\u3001\u305d\u306eJSON\u306e\u69cb\u9020\u306b\u5148\u3093\u3058\u3066\u5b9a\u7fa9\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002JSON\u3092\u30b7\u30ea\u30a2\u30e9\u30a4\u30ba\u3059\u308b\u305f\u3081\u306b\u306f\u3001\u307e\u305aGson\u306b\u5909\u63db\u3059\u308b\u30b3\u30f3\u30d0\u30fc\u30bf\u304c\u5fc5\u8981\u3067\u3059\u3002build.gradle\u30d5\u30a1\u30a4\u30eb\u306b\u4ee5\u4e0b\u306e\u4f9d\u5b58\u95a2\u4fc2\u3092\u8ffd\u52a0\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>compile 'com.squareup.retrofit2:retrofit:2.1.0'\r\ncompile 'com.google.code.gson:gson:2.6.2'\r\ncompile 'com.squareup.retrofit2:converter-gson:2.1.0'\r\n<\/code><\/pre>\n<p>OkHttp\u306e\u4f9d\u5b58\u95a2\u4fc2\u306f\u3059\u3067\u306bRetrofit 2\u306e\u4f9d\u5b58\u95a2\u4fc2\u3068\u4e00\u7dd2\u306b\u914d\u5e03\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u5225\u3005\u306eOkHttp\u306e\u4f9d\u5b58\u95a2\u4fc2\u3092\u4f7f\u7528\u3059\u308b\u5834\u5408\u306f\u3001Retrofit 2\u304b\u3089OkHttp\u306e\u4f9d\u5b58\u95a2\u4fc2\u3092\u9664\u5916\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>compile ('com.squareup.retrofit2:retrofit:2.1.0') {  \r\n  \/\/ exclude Retrofit\u2019s OkHttp dependency module and define your own module import\r\n  exclude module: 'okhttp'\r\n}\r\ncompile 'com.google.code.gson:gson:2.6.2'\r\ncompile 'com.squareup.retrofit2:converter-gson:2.1.0'\r\ncompile 'com.squareup.okhttp3:logging-interceptor:3.4.1'\r\ncompile 'com.squareup.okhttp3:okhttps:3.4.1'\r\n<\/code><\/pre>\n<ul class=\"post-ul\">\n<li>The logging-interceptor generates a log string of the entire response that\u2019s returned.<\/li>\n<li>There are other converters to parse the JSON to the necessary type. A few of them are listed below.<\/li>\n<\/ul>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>Jackson: com.squareup.retrofit2:converter-jackson:2.1.0<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>Moshi: com.squareup.retrofit2:converter-moshi:2.1.0<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>Protobuf: com.squareup.retrofit2:converter-protobuf:2.1.0<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>Wire: com.squareup.retrofit2:converter-wire:2.1.0<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>Simple XML: com.squareup.retrofit2:converter-simplexml:2.1.0<\/ol>\n<\/li>\n<\/ol>\n<p>Jackson: com.squareup.retrofit2:converter-jackson:2.1.0<br \/>\nMoshi: com.squareup.retrofit2:converter-moshi:2.1.0<br \/>\nProtobuf: com.squareup.retrofit2:converter-protobuf:2.1.0<br \/>\nWire: com.squareup.retrofit2:converter-wire:2.1.0<br \/>\nSimple XML: com.squareup.retrofit2:converter-simplexml:2.1.0<\/p>\n<p>AndroidManifest.xml\u30d5\u30a1\u30a4\u30eb\u306b\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u8a31\u53ef\u3092\u8ffd\u52a0\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h3>OkHttp\u306e\u30a4\u30f3\u30bf\u30fc\u30bb\u30d7\u30bf\u30fc<\/h3>\n<p>OkHttp\u306b\u5b58\u5728\u3059\u308b\u30a4\u30f3\u30bf\u30fc\u30bb\u30d7\u30bf\u30fc\u306f\u3001\u547c\u3073\u51fa\u3057\u3092\u76e3\u8996\u3001\u66f8\u304d\u63db\u3048\u3001\u518d\u8a66\u884c\u3059\u308b\u5f37\u529b\u306a\u30e1\u30ab\u30cb\u30ba\u30e0\u3067\u3059\u3002\u30a4\u30f3\u30bf\u30fc\u30bb\u30d7\u30bf\u30fc\u306f\u5927\u304d\u304f2\u3064\u306e\u30ab\u30c6\u30b4\u30ea\u306b\u5206\u3051\u3089\u308c\u307e\u3059\u3002<\/p>\n<ul class=\"post-ul\">\n<li>Application Interceptors : To register an application interceptor, we need to call addInterceptor() on OkHttpClient.Builder<\/li>\n<li>Network Interceptors : To register a Network Interceptor, invoke addNetworkInterceptor() instead of addInterceptor()<\/li>\n<\/ul>\n<h3>Retrofit\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u306e\u8a2d\u5b9a<\/h3>\n<pre class=\"post-pre\"><code>package com.scdev.retrofitintro;\r\n\r\nimport com.scdev.retrofitintro.pojo.MultipleResource;\r\n\r\nimport okhttp3.OkHttpClient;\r\nimport okhttp3.logging.HttpLoggingInterceptor;\r\nimport retrofit2.Retrofit;\r\nimport retrofit2.converter.gson.GsonConverterFactory;\r\n\r\nclass APIClient {\r\n\r\n    private static Retrofit retrofit = null;\r\n\r\n    static Retrofit getClient() {\r\n\r\n        HttpLoggingInterceptor interceptor = new HttpLoggingInterceptor();\r\n        interceptor.setLevel(HttpLoggingInterceptor.Level.BODY);\r\n        OkHttpClient client = new OkHttpClient.Builder().addInterceptor(interceptor).build();\r\n\r\n\r\n        retrofit = new Retrofit.Builder()\r\n                .baseUrl(\"https:\/\/reqres.in\")\r\n                .addConverterFactory(GsonConverterFactory.create())\r\n                .client(client)\r\n                .build();\r\n\r\n\r\n\r\n        return retrofit;\r\n    }\r\n\r\n}\r\n<\/code><\/pre>\n<p>\u4e0a\u8a18\u306e\u30b3\u30fc\u30c9\u306b\u304a\u3051\u308bgetClient()\u30e1\u30bd\u30c3\u30c9\u306f\u3001Retrofit\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u306e\u8a2d\u5b9a\u6642\u306b\u6bce\u56de\u547c\u3073\u51fa\u3055\u308c\u307e\u3059\u3002Retrofit\u306f\u3001\u5404HTTP\u30e1\u30bd\u30c3\u30c9\uff08@GET\u3001@POST\u3001@PUT\u3001@DELETE\u3001@PATCH\u3001@HEAD\uff09\u306b\u5bfe\u3057\u3066\u6ce8\u91c8\u306e\u30ea\u30b9\u30c8\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002APIInterface.java\u30af\u30e9\u30b9\u306e\u898b\u305f\u76ee\u3092\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"post-pre\"><code>package com.scdev.retrofitintro;\r\n\r\nimport com.scdev.retrofitintro.pojo.MultipleResource;\r\nimport com.scdev.retrofitintro.pojo.User;\r\nimport com.scdev.retrofitintro.pojo.UserList;\r\n\r\nimport retrofit2.Call;\r\nimport retrofit2.http.Body;\r\nimport retrofit2.http.Field;\r\nimport retrofit2.http.FormUrlEncoded;\r\nimport retrofit2.http.GET;\r\nimport retrofit2.http.POST;\r\nimport retrofit2.http.Query;\r\n\r\ninterface APIInterface {\r\n\r\n    @GET(\"\/api\/unknown\")\r\n    Call&lt;MultipleResource&gt; doGetListResources();\r\n\r\n    @POST(\"\/api\/users\")\r\n    Call&lt;User&gt; createUser(@Body User user);\r\n\r\n    @GET(\"\/api\/users?\")\r\n    Call&lt;UserList&gt; doGetUserList(@Query(\"page\") String page);\r\n\r\n    @FormUrlEncoded\r\n    @POST(\"\/api\/users?\")\r\n    Call&lt;UserList&gt; doCreateUserWithField(@Field(\"name\") String name, @Field(\"job\") String job);\r\n}\r\n<\/code><\/pre>\n<p>\u4e0a\u8a18\u306e\u30af\u30e9\u30b9\u3067\u306f\u3001\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3057\u3066HTTP\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u5b9f\u884c\u3059\u308b\u3044\u304f\u3064\u304b\u306e\u30e1\u30bd\u30c3\u30c9\u3092\u5b9a\u7fa9\u3057\u3066\u3044\u307e\u3059\u3002 @GET(&#8220;\/api\/unknown&#8221;) \u306f doGetListResources() \u3092\u547c\u3073\u51fa\u3057\u307e\u3059\u3002doGetListResources()\u306f\u30e1\u30bd\u30c3\u30c9\u540d\u3067\u3059\u3002MultipleResource.java\u306f\u3001\u30ec\u30b9\u30dd\u30f3\u30b9\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u5bfe\u5fdc\u3059\u308b\u5909\u6570\u306b\u30de\u30c3\u30d4\u30f3\u30b0\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u308b\u3001\u30e2\u30c7\u30ebPOJO\u30af\u30e9\u30b9\u3067\u3059\u3002\u3053\u308c\u3089\u306ePOJO\u30af\u30e9\u30b9\u306f\u30e1\u30bd\u30c3\u30c9\u306e\u623b\u308a\u5024\u306e\u578b\u3068\u3057\u3066\u6a5f\u80fd\u3057\u307e\u3059\u3002MultipleResources.java\u306e\u305f\u3081\u306e\u30b7\u30f3\u30d7\u30eb\u306aPOJO\u30af\u30e9\u30b9\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>package com.scdev.retrofitintro.pojo;\r\n\r\nimport com.google.gson.annotations.SerializedName;\r\n\r\nimport java.util.ArrayList;\r\nimport java.util.List;\r\n\r\npublic class MultipleResource {\r\n\r\n    @SerializedName(\"page\")\r\n    public Integer page;\r\n    @SerializedName(\"per_page\")\r\n    public Integer perPage;\r\n    @SerializedName(\"total\")\r\n    public Integer total;\r\n    @SerializedName(\"total_pages\")\r\n    public Integer totalPages;\r\n    @SerializedName(\"data\")\r\n    public List&lt;Datum&gt; data = null;\r\n\r\n    public class Datum {\r\n\r\n        @SerializedName(\"id\")\r\n        public Integer id;\r\n        @SerializedName(\"name\")\r\n        public String name;\r\n        @SerializedName(\"year\")\r\n        public Integer year;\r\n        @SerializedName(\"pantone_value\")\r\n        public String pantoneValue;\r\n\r\n    }\r\n}\r\n<\/code><\/pre>\n<p>@SerializedName\u6ce8\u91c8\u306f\u3001JSON\u30ec\u30b9\u30dd\u30f3\u30b9\u5185\u306e\u30d5\u30a3\u30fc\u30eb\u30c9\u540d\u3092\u6307\u5b9a\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002POJO\u30af\u30e9\u30b9\u3092\u30d7\u30ec\u30d3\u30e5\u30fc\u3057\u3001Android Studio\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u69cb\u9020\u306b\u30b3\u30d4\u30fc\u3057\u3066\u304f\u3060\u3055\u3044\u3002POJO\u30af\u30e9\u30b9\u306f\u3001\u578b\u4ed8\u3051\u3055\u308c\u305fRetrofit Call\u30af\u30e9\u30b9\u306b\u30e9\u30c3\u30d7\u3055\u308c\u307e\u3059\u3002\u6ce8\uff1aJSONArray\u306f\u3001POJO\u30af\u30e9\u30b9\u306e\u30e1\u30bd\u30c3\u30c9\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u5185\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u30ea\u30b9\u30c8\u3068\u3057\u3066\u30b7\u30ea\u30a2\u30e9\u30a4\u30ba\u3055\u308c\u307e\u3059\u3002\u30e1\u30bd\u30c3\u30c9\u5185\u306b\u6e21\u3059\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u306e\u53ef\u80fd\u306a\u30aa\u30d7\u30b7\u30e7\u30f3\u306f\u975e\u5e38\u306b\u591a\u5c90\u306b\u308f\u305f\u308a\u307e\u3059\u3002<\/p>\n<ul class=\"post-ul\">\n<li>@Body &#8211; Sends Java objects as request body.<\/li>\n<li>@Url &#8211; use dynamic URLs.<\/li>\n<li>@Query &#8211; We can simply add a method parameter with @Query and a query parameter name, describing the type. To URL encode a query use the form: @Query(value = &#8220;auth_token&#8221;,encoded = true) String auth_token<\/li>\n<li>@Field &#8211; send data as form-urlencoded. This requires a @FormUrlEncoded annotation attached with the method. The @Field parameter works only with a POST<\/li>\n<\/ul>\n<p>\u6ce8\uff1a@Field\u306b\u306f\u5fc5\u9808\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u304c\u5fc5\u8981\u3067\u3059\u3002@Field\u304c\u30aa\u30d7\u30b7\u30e7\u30f3\u306e\u5834\u5408\u3001\u4ee3\u308f\u308a\u306b@Query\u3092\u4f7f\u7528\u3057\u3066\u3001null\u5024\u3092\u6e21\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>Android\u306e\u30ec\u30c8\u30ed\u30d5\u30a3\u30c3\u30c8\u306e\u4f8b\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u69cb\u9020\u3092\u5909\u66f4\u3059\u308b\u3002<\/h3>\n<p>\u30dd\u30b8\u30e7\u30d1\u30c3\u30b1\u30fc\u30b8\u306f\u3001APIInterface.java\u30af\u30e9\u30b9\u3067\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u308bAPI\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u306e\u5fdc\u7b54\u3054\u3068\u306b4\u3064\u306e\u30e2\u30c7\u30eb\u30af\u30e9\u30b9\u3092\u5b9a\u7fa9\u3057\u3066\u3044\u307e\u3059\u3002User.java<\/p>\n<pre class=\"post-pre\"><code>package com.scdev.retrofitintro.pojo;\r\n\r\nimport com.google.gson.annotations.SerializedName;\r\n\r\npublic class User {\r\n\r\n    @SerializedName(\"name\")\r\n    public String name;\r\n    @SerializedName(\"job\")\r\n    public String job;\r\n    @SerializedName(\"id\")\r\n    public String id;\r\n    @SerializedName(\"createdAt\")\r\n    public String createdAt;\r\n\r\n    public User(String name, String job) {\r\n        this.name = name;\r\n        this.job = job;\r\n    }\r\n\r\n\r\n}\r\n<\/code><\/pre>\n<p>\u4e0a\u8a18\u306e\u30af\u30e9\u30b9\u306f\u3001UserList.java\u306ecreateUser()\u30e1\u30bd\u30c3\u30c9\u306e\u30ec\u30b9\u30dd\u30f3\u30b9\u30dc\u30c7\u30a3\u3092\u4f5c\u6210\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>package com.scdev.retrofitintro.pojo;\r\n\r\nimport com.google.gson.annotations.SerializedName;\r\n\r\nimport java.util.ArrayList;\r\nimport java.util.List;\r\n\r\npublic class UserList {\r\n\r\n    @SerializedName(\"page\")\r\n    public Integer page;\r\n    @SerializedName(\"per_page\")\r\n    public Integer perPage;\r\n    @SerializedName(\"total\")\r\n    public Integer total;\r\n    @SerializedName(\"total_pages\")\r\n    public Integer totalPages;\r\n    @SerializedName(\"data\")\r\n    public List&lt;Datum&gt; data = new ArrayList();\r\n\r\n    public class Datum {\r\n\r\n        @SerializedName(\"id\")\r\n        public Integer id;\r\n        @SerializedName(\"first_name\")\r\n        public String first_name;\r\n        @SerializedName(\"last_name\")\r\n        public String last_name;\r\n        @SerializedName(\"avatar\")\r\n        public String avatar;\r\n\r\n    }\r\n}\r\n<\/code><\/pre>\n<p>CreateUserResponse.java\u3092\u65e5\u672c\u8a9e\u3067\u8a00\u3044\u63db\u3048\u308b\u3068\u3001\u6b21\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\uff1a<br \/>\n\u300c\u30e6\u30fc\u30b6\u30fc\u4f5c\u6210\u306e\u30ec\u30b9\u30dd\u30f3\u30b9\u300d<\/p>\n<pre class=\"post-pre\"><code>package com.scdev.retrofitintro.pojo;\r\n\r\nimport com.google.gson.annotations.SerializedName;\r\n\r\npublic class CreateUserResponse {\r\n\r\n    @SerializedName(\"name\")\r\n    public String name;\r\n    @SerializedName(\"job\")\r\n    public String job;\r\n    @SerializedName(\"id\")\r\n    public String id;\r\n    @SerializedName(\"createdAt\")\r\n    public String createdAt;\r\n}\r\n<\/code><\/pre>\n<p>MainActivity.java\u3067\u306f\u3001Interface\u30af\u30e9\u30b9\u3067\u5b9a\u7fa9\u3055\u308c\u305fAPI\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u3092\u547c\u3073\u51fa\u3057\u3001\u5404\u30d5\u30a3\u30fc\u30eb\u30c9\u3092Toast \/ TextView\u306b\u8868\u793a\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>package com.scdev.retrofitintro;\r\n\r\nimport android.support.v7.app.AppCompatActivity;\r\nimport android.os.Bundle;\r\nimport android.util.Log;\r\nimport android.widget.TextView;\r\nimport android.widget.Toast;\r\n\r\nimport com.scdev.retrofitintro.pojo.CreateUserResponse;\r\nimport com.scdev.retrofitintro.pojo.MultipleResource;\r\nimport com.scdev.retrofitintro.pojo.User;\r\nimport com.scdev.retrofitintro.pojo.UserList;\r\n\r\nimport java.util.List;\r\n\r\nimport retrofit2.Call;\r\nimport retrofit2.Callback;\r\nimport retrofit2.Response;\r\n\r\npublic class MainActivity extends AppCompatActivity {\r\n\r\n    TextView responseText;\r\n    APIInterface apiInterface;\r\n\r\n    @Override\r\n    protected void onCreate(Bundle savedInstanceState) {\r\n        super.onCreate(savedInstanceState);\r\n        setContentView(R.layout.activity_main);\r\n        responseText = (TextView) findViewById(R.id.responseText);\r\n        apiInterface = APIClient.getClient().create(APIInterface.class);\r\n\r\n\r\n        \/**\r\n         GET List Resources\r\n         **\/\r\n        Call&lt;MultipleResource&gt; call = apiInterface.doGetListResources();\r\n        call.enqueue(new Callback&lt;MultipleResource&gt;() {\r\n            @Override\r\n            public void onResponse(Call&lt;MultipleResource&gt; call, Response&lt;MultipleResource&gt; response) {\r\n\r\n\r\n                Log.d(\"TAG\",response.code()+\"\");\r\n\r\n                String displayResponse = \"\";\r\n\r\n                MultipleResource resource = response.body();\r\n                Integer text = resource.page;\r\n                Integer total = resource.total;\r\n                Integer totalPages = resource.totalPages;\r\n                List&lt;MultipleResource.Datum&gt; datumList = resource.data;\r\n\r\n                displayResponse += text + \" Page\\n\" + total + \" Total\\n\" + totalPages + \" Total Pages\\n\";\r\n\r\n                for (MultipleResource.Datum datum : datumList) {\r\n                    displayResponse += datum.id + \" \" + datum.name + \" \" + datum.pantoneValue + \" \" + datum.year + \"\\n\";\r\n                }\r\n\r\n                responseText.setText(displayResponse);\r\n\r\n            }\r\n\r\n            @Override\r\n            public void onFailure(Call&lt;MultipleResource&gt; call, Throwable t) {\r\n                call.cancel();\r\n            }\r\n        });\r\n\r\n        \/**\r\n         Create new user\r\n         **\/\r\n        User user = new User(\"morpheus\", \"leader\");\r\n        Call&lt;User&gt; call1 = apiInterface.createUser(user);\r\n        call1.enqueue(new Callback&lt;User&gt;() {\r\n            @Override\r\n            public void onResponse(Call&lt;User&gt; call, Response&lt;User&gt; response) {\r\n                User user1 = response.body();\r\n\r\n                Toast.makeText(getApplicationContext(), user1.name + \" \" + user1.job + \" \" + user1.id + \" \" + user1.createdAt, Toast.LENGTH_SHORT).show();\r\n\r\n            }\r\n\r\n            @Override\r\n            public void onFailure(Call&lt;User&gt; call, Throwable t) {\r\n                call.cancel();\r\n            }\r\n        });\r\n\r\n        \/**\r\n         GET List Users\r\n         **\/\r\n        Call&lt;UserList&gt; call2 = apiInterface.doGetUserList(\"2\");\r\n        call2.enqueue(new Callback&lt;UserList&gt;() {\r\n            @Override\r\n            public void onResponse(Call&lt;UserList&gt; call, Response&lt;UserList&gt; response) {\r\n\r\n                UserList userList = response.body();\r\n                Integer text = userList.page;\r\n                Integer total = userList.total;\r\n                Integer totalPages = userList.totalPages;\r\n                List&lt;UserList.Datum&gt; datumList = userList.data;\r\n                Toast.makeText(getApplicationContext(), text + \" page\\n\" + total + \" total\\n\" + totalPages + \" totalPages\\n\", Toast.LENGTH_SHORT).show();\r\n\r\n                for (UserList.Datum datum : datumList) {\r\n                    Toast.makeText(getApplicationContext(), \"id : \" + datum.id + \" name: \" + datum.first_name + \" \" + datum.last_name + \" avatar: \" + datum.avatar, Toast.LENGTH_SHORT).show();\r\n                }\r\n\r\n\r\n            }\r\n\r\n            @Override\r\n            public void onFailure(Call&lt;UserList&gt; call, Throwable t) {\r\n                call.cancel();\r\n            }\r\n        });\r\n\r\n\r\n        \/**\r\n         POST name and job Url encoded.\r\n         **\/\r\n        Call&lt;UserList&gt; call3 = apiInterface.doCreateUserWithField(\"morpheus\",\"leader\");\r\n        call3.enqueue(new Callback&lt;UserList&gt;() {\r\n            @Override\r\n            public void onResponse(Call&lt;UserList&gt; call, Response&lt;UserList&gt; response) {\r\n                UserList userList = response.body();\r\n                Integer text = userList.page;\r\n                Integer total = userList.total;\r\n                Integer totalPages = userList.totalPages;\r\n                List&lt;UserList.Datum&gt; datumList = userList.data;\r\n                Toast.makeText(getApplicationContext(), text + \" page\\n\" + total + \" total\\n\" + totalPages + \" totalPages\\n\", Toast.LENGTH_SHORT).show();\r\n\r\n                for (UserList.Datum datum : datumList) {\r\n                    Toast.makeText(getApplicationContext(), \"id : \" + datum.id + \" name: \" + datum.first_name + \" \" + datum.last_name + \" avatar: \" + datum.avatar, Toast.LENGTH_SHORT).show();\r\n                }\r\n\r\n            }\r\n\r\n            @Override\r\n            public void onFailure(Call&lt;UserList&gt; call, Throwable t) {\r\n                call.cancel();\r\n            }\r\n        });\r\n\r\n    }\r\n}\r\n<\/code><\/pre>\n<p>apiInterface = APIClient.getClient().create(APIInterface.class); \u306f\u3001APIClient \u3092\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u5316\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002\u30e2\u30c7\u30eb\u30af\u30e9\u30b9\u3092\u30ec\u30b9\u30dd\u30f3\u30b9\u306b\u30de\u30c3\u30d7\u3059\u308b\u305f\u3081\u306b\u306f\u3001MultipleResource resource = response.body(); \u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u5404\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u304c\u547c\u3073\u51fa\u3055\u308c\u3001\u305d\u308c\u306b\u5fdc\u3058\u3066 Toast \u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001Retrofit \u306e Android \u306e\u4f8b\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u306f\u7d42\u4e86\u3067\u3059\u3002\u4ee5\u4e0b\u306e\u30ea\u30f3\u30af\u304b\u3089 Android Retrofit \u306e\u4f8b\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>Retrofit\u306eAndroid\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u300cRetrofit Android\u306e\u5b9f\u4f8b\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3078\u3088\u3046\u3053\u305d\u3002\u4eca\u65e5\u306f\u3001Square\u304c\u958b\u767a\u3057\u305fRetrofit\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u7528\u3057\u3066\u3001Android\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u5185\u3067REST API\u547c\u3073\u51fa\u3057\u3092\u51e6\u7406\u3057\u307e\u3059\u3002\u300d \u30a2\u30f3\u30c9\u30ed\u30a4 [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[26,61],"class_list":["post-925","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-26","tag-61"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u30a2\u30f3\u30c9\u30ed\u30a4\u30c9\u306e\u30ec\u30c8\u30ed\u30d5\u30a3\u30c3\u30c8\u306e\u4f8b\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb - Blog - Silicon Cloud<\/title>\n<meta name=\"description\" content=\"\u30a2\u30f3\u30c9\u30ed\u30a4\u30c9\u306e\u30ec\u30c8\u30ed\u30d5\u30a3\u30c3\u30c8\u306e\u4f8b\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/ja\/blog\/\u30a2\u30f3\u30c9\u30ed\u30a4\u30c9\u306e\u30ec\u30c8\u30ed\u30d5\u30a3\u30c3\u30c8\u306e\u4f8b\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u30a2\u30f3\u30c9\u30ed\u30a4\u30c9\u306e\u30ec\u30c8\u30ed\u30d5\u30a3\u30c3\u30c8\u306e\u4f8b\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\" \/>\n<meta property=\"og:description\" content=\"\u30a2\u30f3\u30c9\u30ed\u30a4\u30c9\u306e\u30ec\u30c8\u30ed\u30d5\u30a3\u30c3\u30c8\u306e\u4f8b\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/ja\/blog\/\u30a2\u30f3\u30c9\u30ed\u30a4\u30c9\u306e\u30ec\u30c8\u30ed\u30d5\u30a3\u30c3\u30c8\u306e\u4f8b\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2022-12-06T00:51:44+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-07-31T18:35:28+00:00\" \/>\n<meta name=\"author\" content=\"\u967d, \u5411\u5b87\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u967d, \u5411\u5b87\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"27\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/%e3%82%a2%e3%83%b3%e3%83%89%e3%83%ad%e3%82%a4%e3%83%89%e3%81%ae%e3%83%ac%e3%83%88%e3%83%ad%e3%83%95%e3%82%a3%e3%83%83%e3%83%88%e3%81%ae%e4%be%8b%e3%81%ae%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa\/\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/%e3%82%a2%e3%83%b3%e3%83%89%e3%83%ad%e3%82%a4%e3%83%89%e3%81%ae%e3%83%ac%e3%83%88%e3%83%ad%e3%83%95%e3%82%a3%e3%83%83%e3%83%88%e3%81%ae%e4%be%8b%e3%81%ae%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa\/\",\"name\":\"\u30a2\u30f3\u30c9\u30ed\u30a4\u30c9\u306e\u30ec\u30c8\u30ed\u30d5\u30a3\u30c3\u30c8\u306e\u4f8b\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\"},\"datePublished\":\"2022-12-06T00:51:44+00:00\",\"dateModified\":\"2025-07-31T18:35:28+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/4aef6196128551a0f5d66db46c42866c\"},\"description\":\"\u30a2\u30f3\u30c9\u30ed\u30a4\u30c9\u306e\u30ec\u30c8\u30ed\u30d5\u30a3\u30c3\u30c8\u306e\u4f8b\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/%e3%82%a2%e3%83%b3%e3%83%89%e3%83%ad%e3%82%a4%e3%83%89%e3%81%ae%e3%83%ac%e3%83%88%e3%83%ad%e3%83%95%e3%82%a3%e3%83%83%e3%83%88%e3%81%ae%e4%be%8b%e3%81%ae%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/ja\/blog\/%e3%82%a2%e3%83%b3%e3%83%89%e3%83%ad%e3%82%a4%e3%83%89%e3%81%ae%e3%83%ac%e3%83%88%e3%83%ad%e3%83%95%e3%82%a3%e3%83%83%e3%83%88%e3%81%ae%e4%be%8b%e3%81%ae%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/%e3%82%a2%e3%83%b3%e3%83%89%e3%83%ad%e3%82%a4%e3%83%89%e3%81%ae%e3%83%ac%e3%83%88%e3%83%ad%e3%83%95%e3%82%a3%e3%83%83%e3%83%88%e3%81%ae%e4%be%8b%e3%81%ae%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/ja\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u30a2\u30f3\u30c9\u30ed\u30a4\u30c9\u306e\u30ec\u30c8\u30ed\u30d5\u30a3\u30c3\u30c8\u306e\u4f8b\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"ja\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/4aef6196128551a0f5d66db46c42866c\",\"name\":\"\u967d, \u5411\u5b87\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/ad96b120e219751fa368cbd7d2c48ca01b59185e6ed394449bac72614a760bf3?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/ad96b120e219751fa368cbd7d2c48ca01b59185e6ed394449bac72614a760bf3?s=96&d=mm&r=g\",\"caption\":\"\u967d, \u5411\u5b87\"},\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/author\/hinatasora\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/%e3%82%a2%e3%83%b3%e3%83%89%e3%83%ad%e3%82%a4%e3%83%89%e3%81%ae%e3%83%ac%e3%83%88%e3%83%ad%e3%83%95%e3%82%a3%e3%83%83%e3%83%88%e3%81%ae%e4%be%8b%e3%81%ae%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u30a2\u30f3\u30c9\u30ed\u30a4\u30c9\u306e\u30ec\u30c8\u30ed\u30d5\u30a3\u30c3\u30c8\u306e\u4f8b\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb - Blog - Silicon Cloud","description":"\u30a2\u30f3\u30c9\u30ed\u30a4\u30c9\u306e\u30ec\u30c8\u30ed\u30d5\u30a3\u30c3\u30c8\u306e\u4f8b\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/ja\/blog\/\u30a2\u30f3\u30c9\u30ed\u30a4\u30c9\u306e\u30ec\u30c8\u30ed\u30d5\u30a3\u30c3\u30c8\u306e\u4f8b\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\/","og_locale":"ja_JP","og_type":"article","og_title":"\u30a2\u30f3\u30c9\u30ed\u30a4\u30c9\u306e\u30ec\u30c8\u30ed\u30d5\u30a3\u30c3\u30c8\u306e\u4f8b\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb","og_description":"\u30a2\u30f3\u30c9\u30ed\u30a4\u30c9\u306e\u30ec\u30c8\u30ed\u30d5\u30a3\u30c3\u30c8\u306e\u4f8b\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002","og_url":"https:\/\/www.silicloud.com\/ja\/blog\/\u30a2\u30f3\u30c9\u30ed\u30a4\u30c9\u306e\u30ec\u30c8\u30ed\u30d5\u30a3\u30c3\u30c8\u306e\u4f8b\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2022-12-06T00:51:44+00:00","article_modified_time":"2025-07-31T18:35:28+00:00","author":"\u967d, \u5411\u5b87","twitter_card":"summary_large_image","twitter_misc":{"\u57f7\u7b46\u8005":"\u967d, \u5411\u5b87","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"27\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/ja\/blog\/%e3%82%a2%e3%83%b3%e3%83%89%e3%83%ad%e3%82%a4%e3%83%89%e3%81%ae%e3%83%ac%e3%83%88%e3%83%ad%e3%83%95%e3%82%a3%e3%83%83%e3%83%88%e3%81%ae%e4%be%8b%e3%81%ae%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa\/","url":"https:\/\/www.silicloud.com\/ja\/blog\/%e3%82%a2%e3%83%b3%e3%83%89%e3%83%ad%e3%82%a4%e3%83%89%e3%81%ae%e3%83%ac%e3%83%88%e3%83%ad%e3%83%95%e3%82%a3%e3%83%83%e3%83%88%e3%81%ae%e4%be%8b%e3%81%ae%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa\/","name":"\u30a2\u30f3\u30c9\u30ed\u30a4\u30c9\u306e\u30ec\u30c8\u30ed\u30d5\u30a3\u30c3\u30c8\u306e\u4f8b\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website"},"datePublished":"2022-12-06T00:51:44+00:00","dateModified":"2025-07-31T18:35:28+00:00","author":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/4aef6196128551a0f5d66db46c42866c"},"description":"\u30a2\u30f3\u30c9\u30ed\u30a4\u30c9\u306e\u30ec\u30c8\u30ed\u30d5\u30a3\u30c3\u30c8\u306e\u4f8b\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002","breadcrumb":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/%e3%82%a2%e3%83%b3%e3%83%89%e3%83%ad%e3%82%a4%e3%83%89%e3%81%ae%e3%83%ac%e3%83%88%e3%83%ad%e3%83%95%e3%82%a3%e3%83%83%e3%83%88%e3%81%ae%e4%be%8b%e3%81%ae%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/ja\/blog\/%e3%82%a2%e3%83%b3%e3%83%89%e3%83%ad%e3%82%a4%e3%83%89%e3%81%ae%e3%83%ac%e3%83%88%e3%83%ad%e3%83%95%e3%82%a3%e3%83%83%e3%83%88%e3%81%ae%e4%be%8b%e3%81%ae%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/ja\/blog\/%e3%82%a2%e3%83%b3%e3%83%89%e3%83%ad%e3%82%a4%e3%83%89%e3%81%ae%e3%83%ac%e3%83%88%e3%83%ad%e3%83%95%e3%82%a3%e3%83%83%e3%83%88%e3%81%ae%e4%be%8b%e3%81%ae%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/ja\/blog\/"},{"@type":"ListItem","position":2,"name":"\u30a2\u30f3\u30c9\u30ed\u30a4\u30c9\u306e\u30ec\u30c8\u30ed\u30d5\u30a3\u30c3\u30c8\u306e\u4f8b\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website","url":"https:\/\/www.silicloud.com\/ja\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"ja"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/4aef6196128551a0f5d66db46c42866c","name":"\u967d, \u5411\u5b87","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/ad96b120e219751fa368cbd7d2c48ca01b59185e6ed394449bac72614a760bf3?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ad96b120e219751fa368cbd7d2c48ca01b59185e6ed394449bac72614a760bf3?s=96&d=mm&r=g","caption":"\u967d, \u5411\u5b87"},"url":"https:\/\/www.silicloud.com\/ja\/blog\/author\/hinatasora\/"},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/%e3%82%a2%e3%83%b3%e3%83%89%e3%83%ad%e3%82%a4%e3%83%89%e3%81%ae%e3%83%ac%e3%83%88%e3%83%ad%e3%83%95%e3%82%a3%e3%83%83%e3%83%88%e3%81%ae%e4%be%8b%e3%81%ae%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/925","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/comments?post=925"}],"version-history":[{"count":1,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/925\/revisions"}],"predecessor-version":[{"id":46732,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/925\/revisions\/46732"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/media?parent=925"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/categories?post=925"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/tags?post=925"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}