We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2dff60 commit 4dab33aCopy full SHA for 4dab33a
README.md
@@ -19,6 +19,15 @@ Base Retrofit& Rxjava Encapsulates the request of the tools
19
20
RetrofitClient.getInstance(context).createBaseApi().post("you path url"
21
,maps, maps, new Subscriber<IpResult>());
22
+# JSON
23
+
24
25
+ RequestBody jsonbody = RequestBody.create(okhttp3.MediaType.parse("application/json; charset=utf-8"), new Gson().toJson(user));
26
27
+ RetrofitClient.getInstance(MainActivity.this).createBaseApi().json("url", jsonBody, new BaseSubscriber<T>(context) {
28
29
+ }
30
31
32
#UpLoad
33
0 commit comments