{"id":2931,"date":"2025-11-12T10:27:30","date_gmt":"2025-11-12T03:27:30","guid":{"rendered":"https:\/\/portal-atlasx.cdg.co.th\/home\/?post_type=docs&#038;p=2931"},"modified":"2025-11-12T10:56:47","modified_gmt":"2025-11-12T03:56:47","slug":"servicemanager","status":"publish","type":"docs","link":"https:\/\/portal-atlasx.cdg.co.th\/home\/docs\/android\/services\/servicemanager\/","title":{"rendered":"ServiceManager"},"content":{"rendered":"\n<h1 class=\"wp-block-heading\" id=\"servicemanager\">ServiceManager<\/h1>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"class-initialize\">Class Initialize<\/h2>\n\n\n\n<p>\u0e01\u0e32\u0e23\u0e40\u0e23\u0e34\u0e48\u0e21\u0e15\u0e49\u0e19\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19 \u0e08\u0e30\u0e15\u0e49\u0e2d\u0e07\u0e1b\u0e23\u0e30\u0e01\u0e32\u0e28 object \u0e02\u0e2d\u0e07\u0e04\u0e25\u0e32\u0e2a\u0e15\u0e32\u0e21\u0e15\u0e31\u0e27\u0e2d\u0e22\u0e48\u0e32\u0e07<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-Fira-Code\" style=\"font-size:.875rem;font-family:Code-Pro-Fira-Code,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" style=\"color:#000000;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>ServiceManager(val context: Context , private val apiInstance: ApiInterface)<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki light-plus\" style=\"background-color: #FFFFFF\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #795E26\">ServiceManager<\/span><span style=\"color: #000000\">(<\/span><span style=\"color: #001080\">val<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">context<\/span><span style=\"color: #000000\">: <\/span><span style=\"color: #001080\">Context<\/span><span style=\"color: #000000\"> , <\/span><span style=\"color: #001080\">private<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">val<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">apiInstance<\/span><span style=\"color: #000000\">: <\/span><span style=\"color: #001080\">ApiInterface<\/span><span style=\"color: #000000\">)<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Name<\/th><th>Description<\/th><th>Type<\/th><th>Variable Type<\/th><\/tr><\/thead><tbody><tr><td>context<\/td><td>context \u0e02\u0e2d\u0e07 Fragment \u0e2b\u0e23\u0e37\u0e2d Activity \u0e17\u0e35\u0e48\u0e08\u0e30\u0e43\u0e0a\u0e49<\/td><td>Context<\/td><td>val<\/td><\/tr><tr><td>apiInstance<\/td><td>apiInterface \u0e17\u0e35\u0e48\u0e43\u0e0a\u0e49\u0e40\u0e23\u0e35\u0e22\u0e01 Service \u0e40\u0e0a\u0e48\u0e19 Retrofit<\/td><td>ApiInterface<\/td><td>private val<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"method-overview\">Method Overview<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Name<\/th><th>Description<\/th><th>Return<\/th><\/tr><\/thead><tbody><tr><td>callServiceGet()<\/td><td>\u0e01\u0e32\u0e23\u0e2a\u0e23\u0e49\u0e32\u0e07 Get Request \u0e41\u0e25\u0e30\u0e40\u0e23\u0e35\u0e22\u0e01 Web Service \u0e42\u0e14\u0e22\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e23\u0e30\u0e1a\u0e38 Service Url \u0e44\u0e14\u0e49<\/td><td>Single&lt; JsonObject &gt;<\/td><\/tr><tr><td>callServicePostBody()<\/td><td>\u0e01\u0e32\u0e23\u0e2a\u0e23\u0e49\u0e32\u0e07 Post Request \u0e41\u0e25\u0e30\u0e40\u0e23\u0e35\u0e22\u0e01 Web Service \u0e41\u0e25\u0e30\u0e2a\u0e48\u0e07 body \u0e44\u0e14\u0e49<\/td><td>Single&lt; JsonObject &gt;<\/td><\/tr><tr><td>callServicePostPartMap()<\/td><td>\u0e01\u0e32\u0e23\u0e2a\u0e23\u0e49\u0e32\u0e07 Post Request \u0e41\u0e25\u0e30\u0e40\u0e23\u0e35\u0e22\u0e01 Web Service \u0e41\u0e25\u0e30\u0e2a\u0e48\u0e07 body \u0e17\u0e35\u0e48\u0e40\u0e1b\u0e47\u0e19 Hasmap \u0e17\u0e35\u0e48\u0e21\u0e35 value \u0e40\u0e1b\u0e47\u0e19 RequestBody \u0e44\u0e14\u0e49<\/td><td>Single&lt; JsonObject &gt;<\/td><\/tr><tr><td>callServicePost()<\/td><td>\u0e01\u0e32\u0e23\u0e2a\u0e23\u0e49\u0e32\u0e07 Post Request \u0e41\u0e25\u0e30\u0e40\u0e23\u0e35\u0e22\u0e01 Web Service<\/td><td>Single&lt; JsonObject &gt;<\/td><\/tr><tr><td>callServiceToUploadFile()<\/td><td>\u0e01\u0e32\u0e23\u0e2a\u0e23\u0e49\u0e32\u0e07 Request \u0e41\u0e25\u0e30\u0e40\u0e23\u0e35\u0e22\u0e01 Web Service \u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e01\u0e32\u0e23 Upload File \u0e43\u0e0a\u0e49\u0e01\u0e31\u0e1a\u0e01\u0e32\u0e23 Sync \u0e44\u0e14\u0e49<\/td><td>Single&lt; JsonObject &gt;<\/td><\/tr><tr><td>callServiceToUploadFileWithBody()<\/td><td>\u0e01\u0e32\u0e23\u0e2a\u0e23\u0e49\u0e32\u0e07 Request \u0e41\u0e25\u0e30\u0e40\u0e23\u0e35\u0e22\u0e01 Web Service \u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e01\u0e32\u0e23 Upload File \u0e43\u0e0a\u0e49\u0e01\u0e31\u0e1a\u0e01\u0e32\u0e23 Sync \u0e44\u0e14\u0e49 \u0e41\u0e25\u0e30\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e2a\u0e48\u0e07 body \u0e44\u0e1b\u0e44\u0e14\u0e49<\/td><td>Single&lt; JsonObject &gt;<\/td><\/tr><tr><td>login()<\/td><td>\u0e01\u0e32\u0e23\u0e2a\u0e23\u0e49\u0e32\u0e07 Request \u0e41\u0e25\u0e30\u0e40\u0e23\u0e35\u0e22\u0e01 Web Service \u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e01\u0e32\u0e23\u0e40\u0e02\u0e49\u0e32\u0e2a\u0e39\u0e48\u0e23\u0e30\u0e1a\u0e1a<\/td><td>Unit<\/td><\/tr><tr><td>getRefreshToken()<\/td><td>\u0e01\u0e32\u0e23\u0e2a\u0e23\u0e49\u0e32\u0e07 Request \u0e41\u0e25\u0e30\u0e40\u0e23\u0e35\u0e22\u0e01 Web Service \u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e01\u0e32\u0e23\u0e02\u0e2d Token \u0e08\u0e32\u0e01 App Authen<\/td><td>Unit<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"method-details\">Method Details<\/h2>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-Fira-Code\" style=\"font-size:.875rem;font-family:Code-Pro-Fira-Code,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" style=\"color:#000000;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>fun callServiceGet() : Single&lt;JsonObject><\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki light-plus\" style=\"background-color: #FFFFFF\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #001080\">fun<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #795E26\">callServiceGet<\/span><span style=\"color: #000000\">() : <\/span><span style=\"color: #001080\">Single<\/span><span style=\"color: #000000\">&lt;<\/span><span style=\"color: #001080\">JsonObject<\/span><span style=\"color: #000000\">&gt;<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u0e01\u0e32\u0e23\u0e2a\u0e23\u0e49\u0e32\u0e07 Get Request \u0e41\u0e25\u0e30\u0e40\u0e23\u0e35\u0e22\u0e01 Web Service \u0e42\u0e14\u0e22\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e23\u0e30\u0e1a\u0e38 Service Url \u0e44\u0e14\u0e49<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"returns\">Returns<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Type<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td>Single&lt; JsonObject &gt;<\/td><td>Return Single \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e23\u0e2d\u0e01\u0e32\u0e23 subscribe<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-Fira-Code\" style=\"font-size:.875rem;font-family:Code-Pro-Fira-Code,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" style=\"color:#000000;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>fun callServicePostBody(postUrl: String = \"\", body: HashMap&lt;String, Any> , authentication: String = \"\"): Single&lt;JsonObject><\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki light-plus\" style=\"background-color: #FFFFFF\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #001080\">fun<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #795E26\">callServicePostBody<\/span><span style=\"color: #000000\">(<\/span><span style=\"color: #001080\">postUrl<\/span><span style=\"color: #000000\">: <\/span><span style=\"color: #001080\">String<\/span><span style=\"color: #000000\"> = <\/span><span style=\"color: #A31515\">&quot;&quot;<\/span><span style=\"color: #000000\">, <\/span><span style=\"color: #001080\">body<\/span><span style=\"color: #000000\">: <\/span><span style=\"color: #001080\">HashMap<\/span><span style=\"color: #000000\">&lt;<\/span><span style=\"color: #001080\">String<\/span><span style=\"color: #000000\">, <\/span><span style=\"color: #001080\">Any<\/span><span style=\"color: #000000\">&gt; , <\/span><span style=\"color: #001080\">authentication<\/span><span style=\"color: #000000\">: <\/span><span style=\"color: #001080\">String<\/span><span style=\"color: #000000\"> = <\/span><span style=\"color: #A31515\">&quot;&quot;<\/span><span style=\"color: #000000\">): <\/span><span style=\"color: #001080\">Single<\/span><span style=\"color: #000000\">&lt;<\/span><span style=\"color: #001080\">JsonObject<\/span><span style=\"color: #000000\">&gt;<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u0e01\u0e32\u0e23\u0e2a\u0e23\u0e49\u0e32\u0e07 Post Request \u0e41\u0e25\u0e30\u0e40\u0e23\u0e35\u0e22\u0e01 Web Service \u0e41\u0e25\u0e30\u0e2a\u0e48\u0e07 body \u0e44\u0e14\u0e49<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"parameters\">Parameters<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Name<\/th><th>Description<\/th><th>Type<\/th><th>Default<\/th><\/tr><\/thead><tbody><tr><td>postUrl<\/td><td>Post Url \u0e17\u0e35\u0e48\u0e15\u0e48\u0e2d \u0e08\u0e32\u0e01 path Base Url \u0e17\u0e35\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23<\/td><td>String<\/td><td>&#8220;&#8221;<\/td><\/tr><tr><td>body<\/td><td>body \u0e17\u0e35\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e08\u0e30\u0e41\u0e19\u0e1a\u0e44\u0e1b\u0e01\u0e31\u0e1a\u0e01\u0e32\u0e23\u0e22\u0e34\u0e07 Request \u0e40\u0e0a\u0e48\u0e19 params<\/td><td>HashMap&lt; String, Any &gt;<\/td><td><\/td><\/tr><tr><td>authentication<\/td><td>authen header \u0e17\u0e35\u0e48\u0e08\u0e30\u0e41\u0e19\u0e1a\u0e44\u0e1b\u0e01\u0e31\u0e1a Request \u0e40\u0e0a\u0e48\u0e19 token<\/td><td>String<\/td><td>&#8220;&#8221;<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"returns-1\">Returns<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Type<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td>Single&lt; JsonObject &gt;<\/td><td>Return Single \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e23\u0e2d\u0e01\u0e32\u0e23 subscribe<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-Fira-Code\" style=\"font-size:.875rem;font-family:Code-Pro-Fira-Code,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" style=\"color:#000000;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>fun callServicePostBody(postUrl: String = \"\", body: HashMap&lt;String, Any> , header: HashMap&lt;String,String> = hashMapOf()): Single&lt;JsonObject><\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki light-plus\" style=\"background-color: #FFFFFF\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #001080\">fun<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #795E26\">callServicePostBody<\/span><span style=\"color: #000000\">(<\/span><span style=\"color: #001080\">postUrl<\/span><span style=\"color: #000000\">: <\/span><span style=\"color: #001080\">String<\/span><span style=\"color: #000000\"> = <\/span><span style=\"color: #A31515\">&quot;&quot;<\/span><span style=\"color: #000000\">, <\/span><span style=\"color: #001080\">body<\/span><span style=\"color: #000000\">: <\/span><span style=\"color: #001080\">HashMap<\/span><span style=\"color: #000000\">&lt;<\/span><span style=\"color: #001080\">String<\/span><span style=\"color: #000000\">, <\/span><span style=\"color: #001080\">Any<\/span><span style=\"color: #000000\">&gt; , <\/span><span style=\"color: #001080\">header<\/span><span style=\"color: #000000\">: <\/span><span style=\"color: #001080\">HashMap<\/span><span style=\"color: #000000\">&lt;<\/span><span style=\"color: #001080\">String<\/span><span style=\"color: #000000\">,<\/span><span style=\"color: #001080\">String<\/span><span style=\"color: #000000\">&gt; = <\/span><span style=\"color: #795E26\">hashMapOf<\/span><span style=\"color: #000000\">()): <\/span><span style=\"color: #001080\">Single<\/span><span style=\"color: #000000\">&lt;<\/span><span style=\"color: #001080\">JsonObject<\/span><span style=\"color: #000000\">&gt;<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u0e01\u0e32\u0e23\u0e2a\u0e23\u0e49\u0e32\u0e07 Post Request \u0e41\u0e25\u0e30\u0e40\u0e23\u0e35\u0e22\u0e01 Web Service \u0e41\u0e25\u0e30\u0e2a\u0e48\u0e07 body \u0e44\u0e14\u0e49<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"parameters-1\">Parameters<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Name<\/th><th>Description<\/th><th>Type<\/th><th>Default<\/th><\/tr><\/thead><tbody><tr><td>postUrl<\/td><td>Post Url \u0e17\u0e35\u0e48\u0e15\u0e48\u0e2d \u0e08\u0e32\u0e01 path Base Url \u0e17\u0e35\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23<\/td><td>String<\/td><td>&#8220;&#8221;<\/td><\/tr><tr><td>body<\/td><td>body \u0e17\u0e35\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e08\u0e30\u0e41\u0e19\u0e1a\u0e44\u0e1b\u0e01\u0e31\u0e1a\u0e01\u0e32\u0e23\u0e22\u0e34\u0e07 Request \u0e40\u0e0a\u0e48\u0e19 params<\/td><td>HashMap&lt; String, Any &gt;<\/td><td><\/td><\/tr><tr><td>header<\/td><td>header \u0e17\u0e35\u0e48\u0e08\u0e30\u0e41\u0e19\u0e1a\u0e44\u0e1b\u0e01\u0e31\u0e1a Request<\/td><td>HashMap&lt; String,String &gt;<\/td><td>hashMapOf()<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"returns-2\">Returns<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Type<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td>Single&lt; JsonObject &gt;<\/td><td>Return Single \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e23\u0e2d\u0e01\u0e32\u0e23 subscribe<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-Fira-Code\" style=\"font-size:.875rem;font-family:Code-Pro-Fira-Code,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" style=\"color:#000000;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>fun callServicePostPartMap(postUrl: String = \"\",  body: HashMap&lt;String, RequestBody> , authentication: String = \"\"): Single&lt;JsonObject><\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki light-plus\" style=\"background-color: #FFFFFF\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #001080\">fun<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #795E26\">callServicePostPartMap<\/span><span style=\"color: #000000\">(<\/span><span style=\"color: #001080\">postUrl<\/span><span style=\"color: #000000\">: <\/span><span style=\"color: #001080\">String<\/span><span style=\"color: #000000\"> = <\/span><span style=\"color: #A31515\">&quot;&quot;<\/span><span style=\"color: #000000\">,  <\/span><span style=\"color: #001080\">body<\/span><span style=\"color: #000000\">: <\/span><span style=\"color: #001080\">HashMap<\/span><span style=\"color: #000000\">&lt;<\/span><span style=\"color: #001080\">String<\/span><span style=\"color: #000000\">, <\/span><span style=\"color: #001080\">RequestBody<\/span><span style=\"color: #000000\">&gt; , <\/span><span style=\"color: #001080\">authentication<\/span><span style=\"color: #000000\">: <\/span><span style=\"color: #001080\">String<\/span><span style=\"color: #000000\"> = <\/span><span style=\"color: #A31515\">&quot;&quot;<\/span><span style=\"color: #000000\">): <\/span><span style=\"color: #001080\">Single<\/span><span style=\"color: #000000\">&lt;<\/span><span style=\"color: #001080\">JsonObject<\/span><span style=\"color: #000000\">&gt;<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u0e01\u0e32\u0e23\u0e2a\u0e23\u0e49\u0e32\u0e07 Post Request \u0e41\u0e25\u0e30\u0e40\u0e23\u0e35\u0e22\u0e01 Web Service \u0e41\u0e25\u0e30\u0e2a\u0e48\u0e07 body \u0e17\u0e35\u0e48\u0e40\u0e1b\u0e47\u0e19 Hasmap \u0e17\u0e35\u0e48\u0e21\u0e35 value \u0e40\u0e1b\u0e47\u0e19 RequestBody \u0e44\u0e14\u0e49<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"parameters-2\">Parameters<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Name<\/th><th>Description<\/th><th>Type<\/th><th>Default<\/th><\/tr><\/thead><tbody><tr><td>postUrl<\/td><td>Post Url \u0e17\u0e35\u0e48\u0e15\u0e48\u0e2d \u0e08\u0e32\u0e01 path Base Url \u0e17\u0e35\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23<\/td><td>String<\/td><td>&#8220;&#8221;<\/td><\/tr><tr><td>body<\/td><td>body \u0e17\u0e35\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e08\u0e30\u0e41\u0e19\u0e1a\u0e44\u0e1b\u0e01\u0e31\u0e1a\u0e01\u0e32\u0e23\u0e22\u0e34\u0e07 Request \u0e40\u0e0a\u0e48\u0e19 params<\/td><td>HashMap&lt; String, RequestBody &gt;<\/td><td><\/td><\/tr><tr><td>authentication<\/td><td>authen header \u0e17\u0e35\u0e48\u0e08\u0e30\u0e41\u0e19\u0e1a\u0e44\u0e1b\u0e01\u0e31\u0e1a Request \u0e40\u0e0a\u0e48\u0e19 token<\/td><td>String<\/td><td>&#8220;&#8221;<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"returns-3\">Returns<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Type<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td>Single&lt; JsonObject &gt;<\/td><td>Return Single \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e23\u0e2d\u0e01\u0e32\u0e23 subscribe<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-Fira-Code\" style=\"font-size:.875rem;font-family:Code-Pro-Fira-Code,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" style=\"color:#000000;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>fun callServicePostPartMap(postUrl: String = \"\",  body: HashMap&lt;String, RequestBody> , header: HashMap&lt;String,String> = hashMapOf()): Single&lt;JsonObject><\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki light-plus\" style=\"background-color: #FFFFFF\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #001080\">fun<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #795E26\">callServicePostPartMap<\/span><span style=\"color: #000000\">(<\/span><span style=\"color: #001080\">postUrl<\/span><span style=\"color: #000000\">: <\/span><span style=\"color: #001080\">String<\/span><span style=\"color: #000000\"> = <\/span><span style=\"color: #A31515\">&quot;&quot;<\/span><span style=\"color: #000000\">,  <\/span><span style=\"color: #001080\">body<\/span><span style=\"color: #000000\">: <\/span><span style=\"color: #001080\">HashMap<\/span><span style=\"color: #000000\">&lt;<\/span><span style=\"color: #001080\">String<\/span><span style=\"color: #000000\">, <\/span><span style=\"color: #001080\">RequestBody<\/span><span style=\"color: #000000\">&gt; , <\/span><span style=\"color: #001080\">header<\/span><span style=\"color: #000000\">: <\/span><span style=\"color: #001080\">HashMap<\/span><span style=\"color: #000000\">&lt;<\/span><span style=\"color: #001080\">String<\/span><span style=\"color: #000000\">,<\/span><span style=\"color: #001080\">String<\/span><span style=\"color: #000000\">&gt; = <\/span><span style=\"color: #795E26\">hashMapOf<\/span><span style=\"color: #000000\">()): <\/span><span style=\"color: #001080\">Single<\/span><span style=\"color: #000000\">&lt;<\/span><span style=\"color: #001080\">JsonObject<\/span><span style=\"color: #000000\">&gt;<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u0e01\u0e32\u0e23\u0e2a\u0e23\u0e49\u0e32\u0e07 Post Request \u0e41\u0e25\u0e30\u0e40\u0e23\u0e35\u0e22\u0e01 Web Service \u0e41\u0e25\u0e30\u0e2a\u0e48\u0e07 body \u0e17\u0e35\u0e48\u0e40\u0e1b\u0e47\u0e19 Hasmap \u0e17\u0e35\u0e48\u0e21\u0e35 value \u0e40\u0e1b\u0e47\u0e19 RequestBody \u0e44\u0e14\u0e49<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"parameters-3\">Parameters<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Name<\/th><th>Description<\/th><th>Type<\/th><th>Default<\/th><\/tr><\/thead><tbody><tr><td>postUrl<\/td><td>Post Url \u0e17\u0e35\u0e48\u0e15\u0e48\u0e2d \u0e08\u0e32\u0e01 path Base Url \u0e17\u0e35\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23<\/td><td>String<\/td><td>&#8220;&#8221;<\/td><\/tr><tr><td>body<\/td><td>body \u0e17\u0e35\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e08\u0e30\u0e41\u0e19\u0e1a\u0e44\u0e1b\u0e01\u0e31\u0e1a\u0e01\u0e32\u0e23\u0e22\u0e34\u0e07 Request \u0e40\u0e0a\u0e48\u0e19 params<\/td><td>HashMap&lt; String, RequestBody &gt;<\/td><td><\/td><\/tr><tr><td>header<\/td><td>header \u0e17\u0e35\u0e48\u0e08\u0e30\u0e41\u0e19\u0e1a\u0e44\u0e1b\u0e01\u0e31\u0e1a Request<\/td><td>HashMap&lt; String,String &gt;<\/td><td>hashMapOf()<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"returns-4\">Returns<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Type<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td>Single&lt; JsonObject &gt;<\/td><td>Return Single \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e23\u0e2d\u0e01\u0e32\u0e23 subscribe<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-Fira-Code\" style=\"font-size:.875rem;font-family:Code-Pro-Fira-Code,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" style=\"color:#000000;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>fun callServicePost(postUrl: String = \"\", header: HashMap&lt;String, String> = hashMapOf()): Single&lt;JsonObject><\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki light-plus\" style=\"background-color: #FFFFFF\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #001080\">fun<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #795E26\">callServicePost<\/span><span style=\"color: #000000\">(<\/span><span style=\"color: #001080\">postUrl<\/span><span style=\"color: #000000\">: <\/span><span style=\"color: #001080\">String<\/span><span style=\"color: #000000\"> = <\/span><span style=\"color: #A31515\">&quot;&quot;<\/span><span style=\"color: #000000\">, <\/span><span style=\"color: #001080\">header<\/span><span style=\"color: #000000\">: <\/span><span style=\"color: #001080\">HashMap<\/span><span style=\"color: #000000\">&lt;<\/span><span style=\"color: #001080\">String<\/span><span style=\"color: #000000\">, <\/span><span style=\"color: #001080\">String<\/span><span style=\"color: #000000\">&gt; = <\/span><span style=\"color: #795E26\">hashMapOf<\/span><span style=\"color: #000000\">()): <\/span><span style=\"color: #001080\">Single<\/span><span style=\"color: #000000\">&lt;<\/span><span style=\"color: #001080\">JsonObject<\/span><span style=\"color: #000000\">&gt;<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u0e01\u0e32\u0e23\u0e2a\u0e23\u0e49\u0e32\u0e07 Post Request \u0e41\u0e25\u0e30\u0e40\u0e23\u0e35\u0e22\u0e01 Web Service<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"parameters-4\">Parameters<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Name<\/th><th>Description<\/th><th>Type<\/th><th>Default<\/th><\/tr><\/thead><tbody><tr><td>postUrl<\/td><td>Post Url \u0e17\u0e35\u0e48\u0e15\u0e48\u0e2d \u0e08\u0e32\u0e01 path Base Url \u0e17\u0e35\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23<\/td><td>String<\/td><td>&#8220;&#8221;<\/td><\/tr><tr><td>header<\/td><td>header \u0e17\u0e35\u0e48\u0e08\u0e30\u0e41\u0e19\u0e1a\u0e44\u0e1b\u0e01\u0e31\u0e1a Request<\/td><td>HashMap&lt; String,String &gt;<\/td><td>hashMapOf()<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"returns-5\">Returns<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Type<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td>Single&lt; JsonObject &gt;<\/td><td>Return Single \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e23\u0e2d\u0e01\u0e32\u0e23 subscribe<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-Fira-Code\" style=\"font-size:.875rem;font-family:Code-Pro-Fira-Code,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" style=\"color:#000000;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>fun callServicePost(postUrl: String = \"\" , authentication: String = \"\"): Single&lt;JsonObject><\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki light-plus\" style=\"background-color: #FFFFFF\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #001080\">fun<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #795E26\">callServicePost<\/span><span style=\"color: #000000\">(<\/span><span style=\"color: #001080\">postUrl<\/span><span style=\"color: #000000\">: <\/span><span style=\"color: #001080\">String<\/span><span style=\"color: #000000\"> = <\/span><span style=\"color: #A31515\">&quot;&quot;<\/span><span style=\"color: #000000\"> , <\/span><span style=\"color: #001080\">authentication<\/span><span style=\"color: #000000\">: <\/span><span style=\"color: #001080\">String<\/span><span style=\"color: #000000\"> = <\/span><span style=\"color: #A31515\">&quot;&quot;<\/span><span style=\"color: #000000\">): <\/span><span style=\"color: #001080\">Single<\/span><span style=\"color: #000000\">&lt;<\/span><span style=\"color: #001080\">JsonObject<\/span><span style=\"color: #000000\">&gt;<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u0e01\u0e32\u0e23\u0e2a\u0e23\u0e49\u0e32\u0e07 Post Request \u0e41\u0e25\u0e30\u0e40\u0e23\u0e35\u0e22\u0e01 Web Service<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"parameters-5\">Parameters<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Name<\/th><th>Description<\/th><th>Type<\/th><th>Default<\/th><\/tr><\/thead><tbody><tr><td>postUrl<\/td><td>Post Url \u0e17\u0e35\u0e48\u0e15\u0e48\u0e2d \u0e08\u0e32\u0e01 path Base Url \u0e17\u0e35\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23<\/td><td>String<\/td><td>&#8220;&#8221;<\/td><\/tr><tr><td>authentication<\/td><td>authen header \u0e17\u0e35\u0e48\u0e08\u0e30\u0e41\u0e19\u0e1a\u0e44\u0e1b\u0e01\u0e31\u0e1a Request \u0e40\u0e0a\u0e48\u0e19 token<\/td><td>String<\/td><td>&#8220;&#8221;<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"returns-6\">Returns<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Type<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td>Single&lt; JsonObject &gt;<\/td><td>Return Single \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e23\u0e2d\u0e01\u0e32\u0e23 subscribe<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-Fira-Code\" style=\"font-size:.875rem;font-family:Code-Pro-Fira-Code,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" style=\"color:#000000;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>fun callServiceToUploadFile(postUrl: String, \n                            file: Array&lt;MultipartBody.Part?>, \n                            header: HashMap&lt;String,String> = hashMapOf()): Single&lt;JsonObject><\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki light-plus\" style=\"background-color: #FFFFFF\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #001080\">fun<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #795E26\">callServiceToUploadFile<\/span><span style=\"color: #000000\">(<\/span><span style=\"color: #001080\">postUrl<\/span><span style=\"color: #000000\">: <\/span><span style=\"color: #001080\">String<\/span><span style=\"color: #000000\">, <\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">                            <\/span><span style=\"color: #001080\">file<\/span><span style=\"color: #000000\">: <\/span><span style=\"color: #001080\">Array<\/span><span style=\"color: #000000\">&lt;<\/span><span style=\"color: #001080\">MultipartBody<\/span><span style=\"color: #000000\">.<\/span><span style=\"color: #001080\">Part<\/span><span style=\"color: #000000\">?&gt;, <\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">                            <\/span><span style=\"color: #001080\">header<\/span><span style=\"color: #000000\">: <\/span><span style=\"color: #001080\">HashMap<\/span><span style=\"color: #000000\">&lt;<\/span><span style=\"color: #001080\">String<\/span><span style=\"color: #000000\">,<\/span><span style=\"color: #001080\">String<\/span><span style=\"color: #000000\">&gt; = <\/span><span style=\"color: #795E26\">hashMapOf<\/span><span style=\"color: #000000\">()): <\/span><span style=\"color: #001080\">Single<\/span><span style=\"color: #000000\">&lt;<\/span><span style=\"color: #001080\">JsonObject<\/span><span style=\"color: #000000\">&gt;<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u0e01\u0e32\u0e23\u0e2a\u0e23\u0e49\u0e32\u0e07 Post Request \u0e41\u0e25\u0e30\u0e40\u0e23\u0e35\u0e22\u0e01 Web Service<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"parameters-6\">Parameters<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Name<\/th><th>Description<\/th><th>Type<\/th><th>Default<\/th><\/tr><\/thead><tbody><tr><td>postUrl<\/td><td>Post Url \u0e17\u0e35\u0e48\u0e15\u0e48\u0e2d \u0e08\u0e32\u0e01 path Base Url \u0e17\u0e35\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23<\/td><td>String<\/td><td><\/td><\/tr><tr><td>file<\/td><td>\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e44\u0e1f\u0e25\u0e4c\u0e17\u0e35\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e2a\u0e48\u0e07\u0e44\u0e1b\u0e22\u0e31\u0e07 Web Service<\/td><td>Array&lt; MultipartBody.Part? &gt;<\/td><td><\/td><\/tr><tr><td>header<\/td><td>header \u0e17\u0e35\u0e48\u0e08\u0e30\u0e41\u0e19\u0e1a\u0e44\u0e1b\u0e01\u0e31\u0e1a Request<\/td><td>HashMap&lt; String,String &gt;<\/td><td>hashMapOf()<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"returns-7\">Returns<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Type<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td>Single&lt; JsonObject &gt;<\/td><td>Return Single \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e23\u0e2d\u0e01\u0e32\u0e23 subscribe<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-Fira-Code\" style=\"font-size:.875rem;font-family:Code-Pro-Fira-Code,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" style=\"color:#000000;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>fun callServiceToUploadFileWithBody(postUrl: String , \n                                    file: Array&lt;MultipartBody.Part> , \n                                    body: HashMap&lt;String, RequestBody> , \n                                    authentication: String = \"\"): Single&lt;JsonObject><\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki light-plus\" style=\"background-color: #FFFFFF\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #001080\">fun<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #795E26\">callServiceToUploadFileWithBody<\/span><span style=\"color: #000000\">(<\/span><span style=\"color: #001080\">postUrl<\/span><span style=\"color: #000000\">: <\/span><span style=\"color: #001080\">String<\/span><span style=\"color: #000000\"> , <\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">                                    <\/span><span style=\"color: #001080\">file<\/span><span style=\"color: #000000\">: <\/span><span style=\"color: #001080\">Array<\/span><span style=\"color: #000000\">&lt;<\/span><span style=\"color: #001080\">MultipartBody<\/span><span style=\"color: #000000\">.<\/span><span style=\"color: #001080\">Part<\/span><span style=\"color: #000000\">&gt; , <\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">                                    <\/span><span style=\"color: #001080\">body<\/span><span style=\"color: #000000\">: <\/span><span style=\"color: #001080\">HashMap<\/span><span style=\"color: #000000\">&lt;<\/span><span style=\"color: #001080\">String<\/span><span style=\"color: #000000\">, <\/span><span style=\"color: #001080\">RequestBody<\/span><span style=\"color: #000000\">&gt; , <\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">                                    <\/span><span style=\"color: #001080\">authentication<\/span><span style=\"color: #000000\">: <\/span><span style=\"color: #001080\">String<\/span><span style=\"color: #000000\"> = <\/span><span style=\"color: #A31515\">&quot;&quot;<\/span><span style=\"color: #000000\">): <\/span><span style=\"color: #001080\">Single<\/span><span style=\"color: #000000\">&lt;<\/span><span style=\"color: #001080\">JsonObject<\/span><span style=\"color: #000000\">&gt;<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u0e01\u0e32\u0e23\u0e2a\u0e23\u0e49\u0e32\u0e07 Request \u0e41\u0e25\u0e30\u0e40\u0e23\u0e35\u0e22\u0e01 Web Service \u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e01\u0e32\u0e23 Upload File \u0e43\u0e0a\u0e49\u0e01\u0e31\u0e1a\u0e01\u0e32\u0e23 Sync \u0e44\u0e14\u0e49 \u0e41\u0e25\u0e30\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e2a\u0e48\u0e07 body \u0e44\u0e1b\u0e44\u0e14\u0e49<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"parameters-7\">Parameters<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Name<\/th><th>Description<\/th><th>Type<\/th><th>Default<\/th><\/tr><\/thead><tbody><tr><td>postUrl<\/td><td>Post Url \u0e17\u0e35\u0e48\u0e15\u0e48\u0e2d \u0e08\u0e32\u0e01 path Base Url \u0e17\u0e35\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23<\/td><td>String<\/td><td><\/td><\/tr><tr><td>file<\/td><td>\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e44\u0e1f\u0e25\u0e4c\u0e17\u0e35\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e2a\u0e48\u0e07\u0e44\u0e1b\u0e22\u0e31\u0e07 Web Service<\/td><td>Array&lt; MultipartBody.Part &gt;<\/td><td><\/td><\/tr><tr><td>body<\/td><td>body \u0e17\u0e35\u0e48\u0e08\u0e30\u0e41\u0e19\u0e1a\u0e44\u0e1b\u0e01\u0e31\u0e1a Request<\/td><td>HashMap&lt; String,RequestBody &gt;<\/td><td><\/td><\/tr><tr><td>authentication<\/td><td>authen header \u0e17\u0e35\u0e48\u0e08\u0e30\u0e41\u0e19\u0e1a\u0e44\u0e1b\u0e01\u0e31\u0e1a Request<\/td><td>String<\/td><td>&#8220;&#8221;<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"returns-8\">Returns<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Type<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td>Single&lt; JsonObject &gt;<\/td><td>Return Single \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e23\u0e2d\u0e01\u0e32\u0e23 subscribe<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-Fira-Code\" style=\"font-size:.875rem;font-family:Code-Pro-Fira-Code,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" style=\"color:#000000;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>fun callServiceToUploadFileWithBody(postUrl: String , \n                                    file: MultipartBody.Part , \n                                    body: HashMap&lt;String, RequestBody> , \n                                    authentication: String = \"\"): Single&lt;JsonObject><\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki light-plus\" style=\"background-color: #FFFFFF\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #001080\">fun<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #795E26\">callServiceToUploadFileWithBody<\/span><span style=\"color: #000000\">(<\/span><span style=\"color: #001080\">postUrl<\/span><span style=\"color: #000000\">: <\/span><span style=\"color: #001080\">String<\/span><span style=\"color: #000000\"> , <\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">                                    <\/span><span style=\"color: #001080\">file<\/span><span style=\"color: #000000\">: <\/span><span style=\"color: #001080\">MultipartBody<\/span><span style=\"color: #000000\">.<\/span><span style=\"color: #001080\">Part<\/span><span style=\"color: #000000\"> , <\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">                                    <\/span><span style=\"color: #001080\">body<\/span><span style=\"color: #000000\">: <\/span><span style=\"color: #001080\">HashMap<\/span><span style=\"color: #000000\">&lt;<\/span><span style=\"color: #001080\">String<\/span><span style=\"color: #000000\">, <\/span><span style=\"color: #001080\">RequestBody<\/span><span style=\"color: #000000\">&gt; , <\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">                                    <\/span><span style=\"color: #001080\">authentication<\/span><span style=\"color: #000000\">: <\/span><span style=\"color: #001080\">String<\/span><span style=\"color: #000000\"> = <\/span><span style=\"color: #A31515\">&quot;&quot;<\/span><span style=\"color: #000000\">): <\/span><span style=\"color: #001080\">Single<\/span><span style=\"color: #000000\">&lt;<\/span><span style=\"color: #001080\">JsonObject<\/span><span style=\"color: #000000\">&gt;<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u0e01\u0e32\u0e23\u0e2a\u0e23\u0e49\u0e32\u0e07 Request \u0e41\u0e25\u0e30\u0e40\u0e23\u0e35\u0e22\u0e01 Web Service \u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e01\u0e32\u0e23 Upload File \u0e43\u0e0a\u0e49\u0e01\u0e31\u0e1a\u0e01\u0e32\u0e23 Sync \u0e44\u0e14\u0e49 \u0e41\u0e25\u0e30\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e2a\u0e48\u0e07 body \u0e44\u0e1b\u0e44\u0e14\u0e49<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"parameters-8\">Parameters<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Name<\/th><th>Description<\/th><th>Type<\/th><th>Default<\/th><\/tr><\/thead><tbody><tr><td>postUrl<\/td><td>Post Url \u0e17\u0e35\u0e48\u0e15\u0e48\u0e2d \u0e08\u0e32\u0e01 path Base Url \u0e17\u0e35\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23<\/td><td>String<\/td><td><\/td><\/tr><tr><td>file<\/td><td>\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e44\u0e1f\u0e25\u0e4c\u0e17\u0e35\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e2a\u0e48\u0e07\u0e44\u0e1b\u0e22\u0e31\u0e07 Web Service<\/td><td>MultipartBody.Part<\/td><td><\/td><\/tr><tr><td>body<\/td><td>body \u0e17\u0e35\u0e48\u0e08\u0e30\u0e41\u0e19\u0e1a\u0e44\u0e1b\u0e01\u0e31\u0e1a Request<\/td><td>HashMap&lt; String,RequestBody &gt;<\/td><td><\/td><\/tr><tr><td>authentication<\/td><td>authen header \u0e17\u0e35\u0e48\u0e08\u0e30\u0e41\u0e19\u0e1a\u0e44\u0e1b\u0e01\u0e31\u0e1a Request<\/td><td>String<\/td><td>&#8220;&#8221;<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"returns-9\">Returns<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Type<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td>Single&lt; JsonObject &gt;<\/td><td>Return Single \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e23\u0e2d\u0e01\u0e32\u0e23 subscribe<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-Fira-Code\" style=\"font-size:.875rem;font-family:Code-Pro-Fira-Code,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" style=\"color:#000000;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>fun callServiceToUploadFileWithBody(postUrl: String , \n                                    file: Array&lt;MultipartBody.Part> , \n                                    body: HashMap&lt;String, RequestBody> , \n                                    header: HashMap&lt;String,String> = hashMapOf()): Single&lt;JsonObject><\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki light-plus\" style=\"background-color: #FFFFFF\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #001080\">fun<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #795E26\">callServiceToUploadFileWithBody<\/span><span style=\"color: #000000\">(<\/span><span style=\"color: #001080\">postUrl<\/span><span style=\"color: #000000\">: <\/span><span style=\"color: #001080\">String<\/span><span style=\"color: #000000\"> , <\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">                                    <\/span><span style=\"color: #001080\">file<\/span><span style=\"color: #000000\">: <\/span><span style=\"color: #001080\">Array<\/span><span style=\"color: #000000\">&lt;<\/span><span style=\"color: #001080\">MultipartBody<\/span><span style=\"color: #000000\">.<\/span><span style=\"color: #001080\">Part<\/span><span style=\"color: #000000\">&gt; , <\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">                                    <\/span><span style=\"color: #001080\">body<\/span><span style=\"color: #000000\">: <\/span><span style=\"color: #001080\">HashMap<\/span><span style=\"color: #000000\">&lt;<\/span><span style=\"color: #001080\">String<\/span><span style=\"color: #000000\">, <\/span><span style=\"color: #001080\">RequestBody<\/span><span style=\"color: #000000\">&gt; , <\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">                                    <\/span><span style=\"color: #001080\">header<\/span><span style=\"color: #000000\">: <\/span><span style=\"color: #001080\">HashMap<\/span><span style=\"color: #000000\">&lt;<\/span><span style=\"color: #001080\">String<\/span><span style=\"color: #000000\">,<\/span><span style=\"color: #001080\">String<\/span><span style=\"color: #000000\">&gt; = <\/span><span style=\"color: #795E26\">hashMapOf<\/span><span style=\"color: #000000\">()): <\/span><span style=\"color: #001080\">Single<\/span><span style=\"color: #000000\">&lt;<\/span><span style=\"color: #001080\">JsonObject<\/span><span style=\"color: #000000\">&gt;<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u0e01\u0e32\u0e23\u0e2a\u0e23\u0e49\u0e32\u0e07 Request \u0e41\u0e25\u0e30\u0e40\u0e23\u0e35\u0e22\u0e01 Web Service \u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e01\u0e32\u0e23 Upload File \u0e43\u0e0a\u0e49\u0e01\u0e31\u0e1a\u0e01\u0e32\u0e23 Sync \u0e44\u0e14\u0e49 \u0e41\u0e25\u0e30\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e2a\u0e48\u0e07 body \u0e44\u0e1b\u0e44\u0e14\u0e49<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"parameters-9\">Parameters<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Name<\/th><th>Description<\/th><th>Type<\/th><th>Default<\/th><\/tr><\/thead><tbody><tr><td>postUrl<\/td><td>Post Url \u0e17\u0e35\u0e48\u0e15\u0e48\u0e2d \u0e08\u0e32\u0e01 path Base Url \u0e17\u0e35\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23<\/td><td>String<\/td><td><\/td><\/tr><tr><td>file<\/td><td>\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e44\u0e1f\u0e25\u0e4c\u0e17\u0e35\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e2a\u0e48\u0e07\u0e44\u0e1b\u0e22\u0e31\u0e07 Web Service<\/td><td>Array&lt; MultipartBody.Part &gt;<\/td><td><\/td><\/tr><tr><td>body<\/td><td>body \u0e17\u0e35\u0e48\u0e08\u0e30\u0e41\u0e19\u0e1a\u0e44\u0e1b\u0e01\u0e31\u0e1a Request<\/td><td>HashMap&lt; String,RequestBody &gt;<\/td><td><\/td><\/tr><tr><td>header<\/td><td>header \u0e17\u0e35\u0e48\u0e08\u0e30\u0e41\u0e19\u0e1a\u0e44\u0e1b\u0e01\u0e31\u0e1a Request<\/td><td>HashMap&lt; String,String &gt;<\/td><td>hashMapOf()<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"returns-10\">Returns<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Type<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td>Single&lt; JsonObject &gt;<\/td><td>Return Single \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e23\u0e2d\u0e01\u0e32\u0e23 subscribe<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-Fira-Code\" style=\"font-size:.875rem;font-family:Code-Pro-Fira-Code,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" style=\"color:#000000;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>fun callServiceToUploadFileWithBody(postUrl: String , \n                                    file: MultipartBody.Part , \n                                    body: HashMap&lt;String, RequestBody> , \n                                    header: HashMap&lt;String,String> = hashMapOf()): Single&lt;JsonObject><\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki light-plus\" style=\"background-color: #FFFFFF\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #001080\">fun<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #795E26\">callServiceToUploadFileWithBody<\/span><span style=\"color: #000000\">(<\/span><span style=\"color: #001080\">postUrl<\/span><span style=\"color: #000000\">: <\/span><span style=\"color: #001080\">String<\/span><span style=\"color: #000000\"> , <\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">                                    <\/span><span style=\"color: #001080\">file<\/span><span style=\"color: #000000\">: <\/span><span style=\"color: #001080\">MultipartBody<\/span><span style=\"color: #000000\">.<\/span><span style=\"color: #001080\">Part<\/span><span style=\"color: #000000\"> , <\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">                                    <\/span><span style=\"color: #001080\">body<\/span><span style=\"color: #000000\">: <\/span><span style=\"color: #001080\">HashMap<\/span><span style=\"color: #000000\">&lt;<\/span><span style=\"color: #001080\">String<\/span><span style=\"color: #000000\">, <\/span><span style=\"color: #001080\">RequestBody<\/span><span style=\"color: #000000\">&gt; , <\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">                                    <\/span><span style=\"color: #001080\">header<\/span><span style=\"color: #000000\">: <\/span><span style=\"color: #001080\">HashMap<\/span><span style=\"color: #000000\">&lt;<\/span><span style=\"color: #001080\">String<\/span><span style=\"color: #000000\">,<\/span><span style=\"color: #001080\">String<\/span><span style=\"color: #000000\">&gt; = <\/span><span style=\"color: #795E26\">hashMapOf<\/span><span style=\"color: #000000\">()): <\/span><span style=\"color: #001080\">Single<\/span><span style=\"color: #000000\">&lt;<\/span><span style=\"color: #001080\">JsonObject<\/span><span style=\"color: #000000\">&gt;<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u0e01\u0e32\u0e23\u0e2a\u0e23\u0e49\u0e32\u0e07 Request \u0e41\u0e25\u0e30\u0e40\u0e23\u0e35\u0e22\u0e01 Web Service \u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e01\u0e32\u0e23 Upload File \u0e43\u0e0a\u0e49\u0e01\u0e31\u0e1a\u0e01\u0e32\u0e23 Sync \u0e44\u0e14\u0e49 \u0e41\u0e25\u0e30\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e2a\u0e48\u0e07 body \u0e44\u0e1b\u0e44\u0e14\u0e49<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"parameters-10\">Parameters<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Name<\/th><th>Description<\/th><th>Type<\/th><th>Default<\/th><\/tr><\/thead><tbody><tr><td>postUrl<\/td><td>Post Url \u0e17\u0e35\u0e48\u0e15\u0e48\u0e2d \u0e08\u0e32\u0e01 path Base Url \u0e17\u0e35\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23<\/td><td>String<\/td><td><\/td><\/tr><tr><td>file<\/td><td>\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e44\u0e1f\u0e25\u0e4c\u0e17\u0e35\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e2a\u0e48\u0e07\u0e44\u0e1b\u0e22\u0e31\u0e07 Web Service<\/td><td>MultipartBody.Part<\/td><td><\/td><\/tr><tr><td>body<\/td><td>body \u0e17\u0e35\u0e48\u0e08\u0e30\u0e41\u0e19\u0e1a\u0e44\u0e1b\u0e01\u0e31\u0e1a Request<\/td><td>HashMap&lt; String,RequestBody &gt;<\/td><td><\/td><\/tr><tr><td>header<\/td><td>header \u0e17\u0e35\u0e48\u0e08\u0e30\u0e41\u0e19\u0e1a\u0e44\u0e1b\u0e01\u0e31\u0e1a Request<\/td><td>HashMap&lt; String,String &gt;<\/td><td>hashMapOf()<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"returns-11\">Returns<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Type<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td>Single&lt; JsonObject &gt;<\/td><td>Return Single \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e23\u0e2d\u0e01\u0e32\u0e23 subscribe<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-Fira-Code\" style=\"font-size:.875rem;font-family:Code-Pro-Fira-Code,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" style=\"color:#000000;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>fun login(username: String, \n          password: String, \n          callback:(response: JsonObject? , error: Exception?) -> Unit)<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki light-plus\" style=\"background-color: #FFFFFF\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #001080\">fun<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #795E26\">login<\/span><span style=\"color: #000000\">(<\/span><span style=\"color: #001080\">username<\/span><span style=\"color: #000000\">: <\/span><span style=\"color: #001080\">String<\/span><span style=\"color: #000000\">, <\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">          <\/span><span style=\"color: #001080\">password<\/span><span style=\"color: #000000\">: <\/span><span style=\"color: #001080\">String<\/span><span style=\"color: #000000\">, <\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">          <\/span><span style=\"color: #001080\">callback<\/span><span style=\"color: #000000\">:(<\/span><span style=\"color: #001080\">response<\/span><span style=\"color: #000000\">: <\/span><span style=\"color: #267F99\">JsonObject<\/span><span style=\"color: #000000\">? , <\/span><span style=\"color: #001080\">error<\/span><span style=\"color: #000000\">: <\/span><span style=\"color: #267F99\">Exception<\/span><span style=\"color: #000000\">?) -&gt; Unit)<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u0e01\u0e32\u0e23\u0e2a\u0e23\u0e49\u0e32\u0e07 Request \u0e41\u0e25\u0e30\u0e40\u0e23\u0e35\u0e22\u0e01 Web Service \u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e01\u0e32\u0e23\u0e40\u0e02\u0e49\u0e32\u0e2a\u0e39\u0e48\u0e23\u0e30\u0e1a\u0e1a<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"parameters-11\">Parameters<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Name<\/th><th>Description<\/th><th>Type<\/th><th>Default<\/th><\/tr><\/thead><tbody><tr><td>username<\/td><td>Post Url \u0e17\u0e35\u0e48\u0e15\u0e48\u0e2d \u0e08\u0e32\u0e01 path Base Url \u0e17\u0e35\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23<\/td><td>String<\/td><td><\/td><\/tr><tr><td>password<\/td><td>\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e44\u0e1f\u0e25\u0e4c\u0e17\u0e35\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e2a\u0e48\u0e07\u0e44\u0e1b\u0e22\u0e31\u0e07 Web Service<\/td><td>String<\/td><td><\/td><\/tr><tr><td>callback<\/td><td>callback \u0e16\u0e49\u0e32 reponse \u0e44\u0e21\u0e48\u0e40\u0e1b\u0e47\u0e19 null \u0e41\u0e2a\u0e14\u0e07\u0e27\u0e48\u0e32 login \u0e2a\u0e33\u0e40\u0e23\u0e47\u0e08 \u0e41\u0e15\u0e48\u0e16\u0e49\u0e32 error \u0e44\u0e21\u0e48\u0e40\u0e1b\u0e47\u0e19 null \u0e41\u0e2a\u0e14\u0e07\u0e27\u0e48\u0e32 login \u0e44\u0e21\u0e48\u0e2a\u0e33\u0e40\u0e23\u0e47\u0e08<\/td><td>Unit<\/td><td><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"returns-12\">Returns<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Type<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td>Single&lt; JsonObject &gt;<\/td><td>Return Single \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e23\u0e2d\u0e01\u0e32\u0e23 subscribe<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-Fira-Code\" style=\"font-size:.875rem;font-family:Code-Pro-Fira-Code,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" style=\"color:#000000;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>fun login(callback:(response: JsonObject? , error: Exception?) -> Unit)<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki light-plus\" style=\"background-color: #FFFFFF\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #001080\">fun<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #795E26\">login<\/span><span style=\"color: #000000\">(<\/span><span style=\"color: #001080\">callback<\/span><span style=\"color: #000000\">:(<\/span><span style=\"color: #001080\">response<\/span><span style=\"color: #000000\">: <\/span><span style=\"color: #267F99\">JsonObject<\/span><span style=\"color: #000000\">? , <\/span><span style=\"color: #001080\">error<\/span><span style=\"color: #000000\">: <\/span><span style=\"color: #267F99\">Exception<\/span><span style=\"color: #000000\">?) -&gt; Unit)<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u0e01\u0e32\u0e23\u0e2a\u0e23\u0e49\u0e32\u0e07 Request \u0e41\u0e25\u0e30\u0e40\u0e23\u0e35\u0e22\u0e01 Web Service \u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e01\u0e32\u0e23\u0e02\u0e2d Token \u0e08\u0e32\u0e01 App Authen<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"parameters-12\">Parameters<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Name<\/th><th>Description<\/th><th>Type<\/th><th>Default<\/th><\/tr><\/thead><tbody><tr><td>callback<\/td><td>callback \u0e16\u0e49\u0e32 reponse \u0e44\u0e21\u0e48\u0e40\u0e1b\u0e47\u0e19 null \u0e41\u0e2a\u0e14\u0e07\u0e27\u0e48\u0e32\u0e02\u0e2d token \u0e43\u0e2b\u0e21\u0e48\u0e2a\u0e33\u0e40\u0e23\u0e47\u0e08 \u0e41\u0e15\u0e48\u0e16\u0e49\u0e32 error \u0e44\u0e21\u0e48\u0e40\u0e1b\u0e47\u0e19 null \u0e41\u0e2a\u0e14\u0e07\u0e27\u0e48\u0e32\u0e02\u0e2d token \u0e43\u0e2b\u0e21\u0e48\u0e44\u0e21\u0e48\u0e2a\u0e33\u0e40\u0e23\u0e47\u0e08<\/td><td>Unit<\/td><td><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"returns-13\">Returns<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Type<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td>Single&lt; JsonObject &gt;<\/td><td>Return Single \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e23\u0e2d\u0e01\u0e32\u0e23 subscribe<\/td><\/tr><\/tbody><\/table><\/figure>\n","protected":false},"featured_media":0,"parent":2920,"menu_order":4,"comment_status":"closed","ping_status":"closed","template":"","meta":{"nav_title":"","positive":"","negative":"","footnotes":""},"docs_category":[],"class_list":["post-2931","docs","type-docs","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/portal-atlasx.cdg.co.th\/home\/wp-json\/wp\/v2\/docs\/2931","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/portal-atlasx.cdg.co.th\/home\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/portal-atlasx.cdg.co.th\/home\/wp-json\/wp\/v2\/types\/docs"}],"replies":[{"embeddable":true,"href":"https:\/\/portal-atlasx.cdg.co.th\/home\/wp-json\/wp\/v2\/comments?post=2931"}],"version-history":[{"count":13,"href":"https:\/\/portal-atlasx.cdg.co.th\/home\/wp-json\/wp\/v2\/docs\/2931\/revisions"}],"predecessor-version":[{"id":2970,"href":"https:\/\/portal-atlasx.cdg.co.th\/home\/wp-json\/wp\/v2\/docs\/2931\/revisions\/2970"}],"up":[{"embeddable":true,"href":"https:\/\/portal-atlasx.cdg.co.th\/home\/wp-json\/wp\/v2\/docs\/2920"}],"wp:attachment":[{"href":"https:\/\/portal-atlasx.cdg.co.th\/home\/wp-json\/wp\/v2\/media?parent=2931"}],"wp:term":[{"taxonomy":"docs_category","embeddable":true,"href":"https:\/\/portal-atlasx.cdg.co.th\/home\/wp-json\/wp\/v2\/docs_category?post=2931"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}