c6c~,\"\n\n-- Sample result:\n-- (no output)\n"},"swift-nsurlsession":{"filename":"set-using-swift-nsurlsession.swift","data":"// \r// Sample for authentication server object / users list[] / password.\r// \r// This is a sample demonstrating how to set the password.\r// \r\r// Note that this sample has been generated by httpsnippet;\r// authentication configuration (usually digest) is not included.\r\rimport Foundation\r\rlet headers = [\r \"Connection\": \"close\",\r \"Content-Type\": \"application/json\",\r \"X-CSRF\": \"x\"\r]\rlet parameters = \";py1\\\"(P#d=(~ZTMq\" as [String : Any]\r\rlet postData = JSONSerialization.data(withJSONObject: parameters, options: [])\r\rlet request = NSMutableURLRequest(url: NSURL(string: \"http://192.168.0.100/restapi/auth/users/:user_account_index/password/\")! as URL,\r cachePolicy: .useProtocolCachePolicy,\r timeoutInterval: 10.0)\rrequest.httpMethod = \"PUT\"\rrequest.allHTTPHeaderFields = headers\rrequest.httpBody = postData as Data\r\rlet session = URLSession.shared\rlet dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in\r if (error != nil) {\r print(error)\r } else {\r let httpResponse = response as? HTTPURLResponse\r print(httpResponse)\r }\r})\r\rdataTask.resume()\r\r\r// Sample result:\r// \r"}},"get":{"shell-httpie":{"filename":"get-using-shell-httpie.sh","data":"#!/bin/sh\n# \n# Sample for authentication server object / users list[] / password.\n# \n# This is a sample demonstrating how to get the password.\n# \n\n# Note that this sample has been generated by httpsnippet;\n# authentication configuration (usually digest) is not included.\n\nhttp GET http://192.168.0.100/restapi/auth/users/:user_account_index/password/ \\\n Accept:application/json \\\n Connection:close\n\n\n# Sample result:\n# \"\\\"sDXOD|iW,azfF X\"\n"},"php-http2":{"filename":"get-using-php-http2.php","data":"#!/usr/bin/env php\n// \n// Sample for authentication server object / users list[] / password.\n// \n// This is a sample demonstrating how to get the password.\n// \n\n// Note that this sample has been generated by httpsnippet;\n// authentication configuration (usually digest) is not included.\n\nsetRequestUrl('http://192.168.0.100/restapi/auth/users/:user_account_index/password/');\n$request->setRequestMethod('GET');\n$request->setHeaders([\n 'Connection' => 'close',\n 'Accept' => 'application/json'\n]);\n\n$client->enqueue($request)->send();\n$response = $client->getResponse();\n\necho $response->getBody();\n\n\n// Sample result:\n// \"\\\"sDXOD|iW,azfF X\"\n"},"python-python3":{"filename":"get-using-python-python3.py","data":"#!/usr/bin/env python\n# \n# Sample for authentication server object / users list[] / password.\n# \n# This is a sample demonstrating how to get the password.\n# \n\n# Note that this sample has been generated by httpsnippet;\n# authentication configuration (usually digest) is not included.\n\nimport http.client\n\nconn = http.client.HTTPConnection(\"192.168.0.100\")\n\nheaders = {\n 'Connection': \"close\",\n 'Accept': \"application/json\"\n }\n\nconn.request(\"GET\", \"/restapi/auth/users/:user_account_index/password/\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))\n\n\n# Sample result:\n# \"\\\"sDXOD|iW,azfF X\"\n"},"objc-nsurlsession":{"filename":"get-using-objc-nsurlsession.m","data":"// \r// Sample for authentication server object / users list[] / password.\r// \r// This is a sample demonstrating how to get the password.\r// \r\r// Note that this sample has been generated by httpsnippet;\r// authentication configuration (usually digest) is not included.\r\r#import \r\rNSDictionary *headers = @{ @\"Connection\": @\"close\",\r @\"Accept\": @\"application/json\" };\r\rNSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@\"http://192.168.0.100/restapi/auth/users/:user_account_index/password/\"]\r cachePolicy:NSURLRequestUseProtocolCachePolicy\r timeoutInterval:10.0];\r[request setHTTPMethod:@\"GET\"];\r[request setAllHTTPHeaderFields:headers];\r\rNSURLSession *session = [NSURLSession sharedSession];\rNSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request\r completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {\r if (error) {\r NSLog(@\"%@\", error);\r } else {\r NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;\r NSLog(@\"%@\", httpResponse);\r }\r }];\r[dataTask resume];\r\r\r// Sample result:\r// \"\\\"sDXOD|iW,azfF X\"\r"},"py":{"filename":"get-using-py-requests.py","data":"#!/usr/bin/env python\n# \n# Sample for authentication server object / users list[] / password.\n# \n# This is a sample demonstrating how to get the password.\n# \n\nfrom __future__ import print_function\nimport requests\nfrom requests.auth import HTTPDigestAuth\nheaders = {'accept': 'application/json','content-type': 'application/json','prefer': 'return=minimal','x-csrf': 'x'}\nauth = HTTPDigestAuth('admin', '1234')\n\n# Index into users list array (0-based)\n_user_account_index=1\n\nprint(requests.get('http://192.168.0.100/restapi/auth/users/'+str(_user_account_index)+'/password/',auth=auth,headers=headers).json())\n\n# Sample result:\n# 'ti4\"F\\'J8K$*oW'\n"},"go-native":{"filename":"get-using-go-native.go","data":"// \n// Sample for authentication server object / users list[] / password.\n// \n// This is a sample demonstrating how to get the password.\n// \n\n// Note that this sample has been generated by httpsnippet;\n// authentication configuration (usually digest) is not included.\n\npackage main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"http://192.168.0.100/restapi/auth/users/:user_account_index/password/\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"Connection\", \"close\")\n\treq.Header.Add(\"Accept\", \"application/json\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}\n\n\n// Sample result:\n// \"\\\"sDXOD|iW,azfF X\"\n"},"js":{"filename":"get-using-js-request.js","data":"#!/usr/bin/env node\n// \n// Sample for authentication server object / users list[] / password.\n// \n// This is a sample demonstrating how to get the password.\n// \n\nvar request=require(\"request\").defaults({baseUrl: \"http://192.168.0.100/restapi/\", auth: {user: \"admin\", pass: \"1234\", sendImmediately: false}, json: true, headers: {\"X-CSRF\": \"x\", \"Prefer\": \"return=minimal\" }});\n\n// Index into users list array (0-based)\nvar _user_account_index=0;\n\nrequest.get({url:\"auth/users/\"+_user_account_index.toString()+\"/password/\"},function(error,response,body) {console.log(body)});\n\n// Sample result:\n// \" \"http://192.168.0.100/restapi/auth/users/:user_account_index/password/\",\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_ENCODING => \"\",\n CURLOPT_MAXREDIRS => 10,\n CURLOPT_TIMEOUT => 30,\n CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n CURLOPT_CUSTOMREQUEST => \"GET\",\n CURLOPT_HTTPHEADER => [\n \"Accept: application/json\",\n \"Connection: close\"\n ],\n]);\n\n$response = curl_exec($curl);\n$err = curl_error($curl);\n\ncurl_close($curl);\n\nif ($err) {\n echo \"cURL Error #:\" . $err;\n} else {\n echo $response;\n}\n\n\n// Sample result:\n// \"\\\"sDXOD|iW,azfF X\"\n"},"r-httr":{"filename":"get-using-r-httr.r","data":"#!/usr/bin/env RScript\n# \n# Sample for authentication server object / users list[] / password.\n# \n# This is a sample demonstrating how to get the password.\n# \n\n# Note that this sample has been generated by httpsnippet;\n# authentication configuration (usually digest) is not included.\n\nlibrary(httr)\n\nurl <- \"http://192.168.0.100/restapi/auth/users/:user_account_index/password/\"\n\nresponse <- VERB(\"GET\", url, add_headers(Connection = 'close', Accept = 'application/json', '), content_type(\"application/octet-stream\"))\n\ncontent(response, \"text\")\n\n\n# Sample result:\n# \"\\\"sDXOD|iW,azfF X\"\n"},"csharp-restsharp":{"filename":"get-using-csharp-restsharp.cs","data":"// \r\n// Sample for authentication server object / users list[] / password.\r\n// \r\n// This is a sample demonstrating how to get the password.\r\n// \r\n\r\n// Note that this sample has been generated by httpsnippet;\r\n// authentication configuration (usually digest) is not included.\r\n\r\nvar client = new RestClient(\"http://192.168.0.100/restapi/auth/users/:user_account_index/password/\");\r\nvar request = new RestRequest(Method.GET);\r\nrequest.AddHeader(\"Connection\", \"close\");\r\nrequest.AddHeader(\"Accept\", \"application/json\");\r\nIRestResponse response = client.Execute(request);\r\n\r\n\r\n// Sample result:\r\n// \"\\\"sDXOD|iW,azfF X\"\r\n"},"curl-sh":{"filename":"get-using-curl.sh","data":"#!/bin/sh\n# \n# Sample for authentication server object / users list[] / password.\n# \n# This is a sample demonstrating how to get the password.\n# \n\n# Index into users list array (0-based)\nuser_account_index=5\n\ncurl --digest -u admin:1234 -H \"Accept: application/json\" \"http://192.168.0.100/restapi/auth/users/${user_account_index}/password/\"\n\n# Sample result:\n# \"^;SJl_X(\\\\\"\n"},"javascript-xhr":{"filename":"get-using-javascript-xhr.js","data":"// \n// Sample for authentication server object / users list[] / password.\n// \n// This is a sample demonstrating how to get the password.\n// \n\n// Note that this sample has been generated by httpsnippet;\n// authentication configuration (usually digest) is not included.\n\nconst data = null;\n\nconst xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n if (this.readyState === this.DONE) {\n console.log(this.responseText);\n }\n});\n\nxhr.open(\"GET\", \"http://192.168.0.100/restapi/auth/users/:user_account_index/password/\");\nxhr.setRequestHeader(\"Connection\", \"close\");\nxhr.setRequestHeader(\"Accept\", \"application/json\");\n\nxhr.send(data);\n\n\n// Sample result:\n// \"\\\"sDXOD|iW,azfF X\"\n"},"node-axios":{"filename":"get-using-node-axios.js","data":"#!/usr/bin/env node\n// \n// Sample for authentication server object / users list[] / password.\n// \n// This is a sample demonstrating how to get the password.\n// \n\n// Note that this sample has been generated by httpsnippet;\n// authentication configuration (usually digest) is not included.\n\nvar axios = require(\"axios\").default;\n\nvar options = {\n method: 'GET',\n url: 'http://192.168.0.100/restapi/auth/users/:user_account_index/password/',\n headers: {Connection: 'close', Accept: 'application/json'}\n};\n\naxios.request(options).then(function (response) {\n console.log(response.data);\n}).catch(function (error) {\n console.error(error);\n});\n\n\n// Sample result:\n// \"\\\"sDXOD|iW,azfF X\"\n"},"ocaml-cohttp":{"filename":"get-using-ocaml-cohttp.ml","data":"(* *)\n(* Sample for authentication server object / users list[] / password.*)\n(* *)\n(* This is a sample demonstrating how to get the password.*)\n(* *)\n\n(* Note that this sample has been generated by httpsnippet;*)\n(* authentication configuration (usually digest) is not included.*)\n\nopen Cohttp_lwt_unix\nopen Cohttp\nopen Lwt\n\nlet uri = Uri.of_string \"http://192.168.0.100/restapi/auth/users/:user_account_index/password/\" in\nlet headers = Header.add_list (Header.init ()) [\n (\"Connection\", \"close\");\n (\"Accept\", \"application/json\");\n] in\n\nClient.call ~headers `GET uri\n>>= fun (res, body_stream) ->\n (* Do stuff with the result *)\n\n\n(* Sample result:*)\n(* \"\\\"sDXOD|iW,azfF X\"*)\n"},"node-unirest":{"filename":"get-using-node-unirest.js","data":"#!/usr/bin/env node\n// \n// Sample for authentication server object / users list[] / password.\n// \n// This is a sample demonstrating how to get the password.\n// \n\n// Note that this sample has been generated by httpsnippet;\n// authentication configuration (usually digest) is not included.\n\nconst unirest = require(\"unirest\");\n\nconst req = unirest(\"GET\", \"http://192.168.0.100/restapi/auth/users/:user_account_index/password/\");\n\nreq.headers({\n \"Connection\": \"close\",\n \"Accept\": \"application/json\"\n});\n\nreq.end(function (res) {\n if (res.error) throw new Error(res.error);\n\n console.log(res.body);\n});\n\n\n\n// Sample result:\n// \"\\\"sDXOD|iW,azfF X\"\n"},"node-native":{"filename":"get-using-node-native.js","data":"#!/usr/bin/env node\n// \n// Sample for authentication server object / users list[] / password.\n// \n// This is a sample demonstrating how to get the password.\n// \n\n// Note that this sample has been generated by httpsnippet;\n// authentication configuration (usually digest) is not included.\n\nconst http = require(\"http\");\n\nconst options = {\n \"method\": \"GET\",\n \"hostname\": \"192.168.0.100\",\n \"port\": null,\n \"path\": \"/restapi/auth/users/:user_account_index/password/\",\n \"headers\": {\n \"Connection\": \"close\",\n \"Accept\": \"application/json\"\n }\n};\n\nconst req = http.request(options, function (res) {\n const chunks = [];\n\n res.on(\"data\", function (chunk) {\n chunks.push(chunk);\n });\n\n res.on(\"end\", function () {\n const body = Buffer.concat(chunks);\n console.log(body.toString());\n });\n});\n\nreq.end();\n\n\n// Sample result:\n// \"\\\"sDXOD|iW,azfF X\"\n"},"shell-wget":{"filename":"get-using-shell-wget.sh","data":"#!/bin/sh\n# \n# Sample for authentication server object / users list[] / password.\n# \n# This is a sample demonstrating how to get the password.\n# \n\n# Note that this sample has been generated by httpsnippet;\n# authentication configuration (usually digest) is not included.\n\nwget --quiet \\\n --method GET \\\n --header 'Connection: close' \\\n --header 'Accept: application/json' \\\n --output-document \\\n - http://192.168.0.100/restapi/auth/users/:user_account_index/password/\n\n\n# Sample result:\n# \"\\\"sDXOD|iW,azfF X\"\n"},"php-http1":{"filename":"get-using-php-http1.php","data":"#!/usr/bin/env php\n// \n// Sample for authentication server object / users list[] / password.\n// \n// This is a sample demonstrating how to get the password.\n// \n\n// Note that this sample has been generated by httpsnippet;\n// authentication configuration (usually digest) is not included.\n\nsetUrl('http://192.168.0.100/restapi/auth/users/:user_account_index/password/');\n$request->setMethod(HTTP_METH_GET);\n\n$request->setHeaders([\n 'Connection' => 'close',\n 'Accept' => 'application/json'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}\n\n\n// Sample result:\n// \"\\\"sDXOD|iW,azfF X\"\n"},"curl-bat":{"filename":"get-using-curl.bat","data":"@REM \r\n@REM Sample for authentication server object / users list[] / password.\r\n@REM \r\n@REM This is a sample demonstrating how to get the password.\r\n@REM \r\n\r\n@REM Index into users list array (0-based)\r\nSET user_account_index=1\r\n\r\ncurl --digest -u admin:1234 -H \"Accept: application/json\" \"http://192.168.0.100/restapi/auth/users/%user_account_index%/password/\"\r\n\r\n@REM Sample result:\r\n@REM \"^;SJl_X(\\\\\"\r\n"},"powershell-webrequest":{"filename":"get-using-powershell-webrequest.ps1","data":"# \r\n# Sample for authentication server object / users list[] / password.\r\n# \r\n# This is a sample demonstrating how to get the password.\r\n# \r\n\r\n# Note that this sample has been generated by httpsnippet;\r\n# authentication configuration (usually digest) is not included.\r\n\r\n$headers=@{}\r\n$headers.Add(\"Connection\", \"close\")\r\n$headers.Add(\"Accept\", \"application/json\")\r\n$response = Invoke-WebRequest -Uri 'http://192.168.0.100/restapi/auth/users/:user_account_index/password/' -Method GET -Headers $headers\r\n\r\n\r\n# Sample result:\r\n# \"\\\"sDXOD|iW,azfF X\"\r\n"},"c-libcurl":{"filename":"get-using-c-libcurl.c","data":"/* */\n/* Sample for authentication server object / users list[] / password. */\n/* */\n/* This is a sample demonstrating how to get the password. */\n/* */\n\n/* Note that this sample has been generated by httpsnippet; */\n/* authentication configuration (usually digest) is not included. */\n\nCURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"GET\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"http://192.168.0.100/restapi/auth/users/:user_account_index/password/\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"Connection: close\");\nheaders = curl_slist_append(headers, \"Accept: application/json\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\nCURLcode ret = curl_easy_perform(hnd);\n\n\n/* Sample result: */\n/* \"\\\"sDXOD|iW,azfF X\" */\n"},"kotlin-okhttp":{"filename":"get-using-kotlin-okhttp.kt","data":"// \n// Sample for authentication server object / users list[] / password.\n// \n// This is a sample demonstrating how to get the password.\n// \n\n// Note that this sample has been generated by httpsnippet;\n// authentication configuration (usually digest) is not included.\n\nval client = OkHttpClient()\n\nval request = Request.Builder()\n .url(\"http://192.168.0.100/restapi/auth/users/:user_account_index/password/\")\n .get()\n .addHeader(\"Connection\", \"close\")\n .addHeader(\"Accept\", \"application/json\")\n .build()\n\nval response = client.newCall(request).execute()\n\n\n// Sample result:\n// \"\\\"sDXOD|iW,azfF X\"\n"},"http-1.1":{"filename":"get-using-http-1.1.txt","data":"# \n# Sample for authentication server object / users list[] / password.\n# \n# This is a sample demonstrating how to get the password.\n# \n\n# Note that this sample has been generated by httpsnippet;\n# authentication configuration (usually digest) is not included.\n\nGET /restapi/auth/users/:user_account_index/password/ HTTP/1.1\r\nConnection: close\r\nAccept: application/json\r\nHost: 192.168.0.100\r\n\r\n\n\n\n# Sample result:\n# \"\\\"sDXOD|iW,azfF X\"\n"},"javascript-axios":{"filename":"get-using-javascript-axios.js","data":"// \n// Sample for authentication server object / users list[] / password.\n// \n// This is a sample demonstrating how to get the password.\n// \n\n// Note that this sample has been generated by httpsnippet;\n// authentication configuration (usually digest) is not included.\n\nimport axios from \"axios\";\n\nconst options = {\n method: 'GET',\n url: 'http://192.168.0.100/restapi/auth/users/:user_account_index/password/',\n headers: {Connection: 'close', Accept: 'application/json'}\n};\n\naxios.request(options).then(function (response) {\n console.log(response.data);\n}).catch(function (error) {\n console.error(error);\n});\n\n\n// Sample result:\n// \"\\\"sDXOD|iW,azfF X\"\n"},"clojure-clj_http":{"filename":"get-using-clojure-clj_http.clj","data":"#!/usr/bin/env cljs\n; \n; Sample for authentication server object / users list[] / password.\n; \n; This is a sample demonstrating how to get the password.\n; \n\n; Note that this sample has been generated by httpsnippet;\n; authentication configuration (usually digest) is not included.\n\n(require '[clj-http.client :as client])\n\n(client/get \"http://192.168.0.100/restapi/auth/users/:user_account_index/password/\" {:headers {:Connection \"close\"\n :Accept \"application/json\"}})\n\n\n; Sample result:\n; \"\\\"sDXOD|iW,azfF X\"\n"},"java-unirest":{"filename":"get-using-java-unirest.java","data":"// \n// Sample for authentication server object / users list[] / password.\n// \n// This is a sample demonstrating how to get the password.\n// \n\n// Note that this sample has been generated by httpsnippet;\n// authentication configuration (usually digest) is not included.\n\nHttpResponse response = Unirest.get(\"http://192.168.0.100/restapi/auth/users/:user_account_index/password/\")\n .header(\"Connection\", \"close\")\n .header(\"Accept\", \"application/json\")\n .asString();\n\n\n// Sample result:\n// \"\\\"sDXOD|iW,azfF X\"\n"},"javascript-fetch":{"filename":"get-using-javascript-fetch.js","data":"// \n// Sample for authentication server object / users list[] / password.\n// \n// This is a sample demonstrating how to get the password.\n// \n\n// Note that this sample has been generated by httpsnippet;\n// authentication configuration (usually digest) is not included.\n\nfetch(\"http://192.168.0.100/restapi/auth/users/:user_account_index/password/\", {\n \"method\": \"GET\",\n \"headers\": {\n \"Connection\": \"close\",\n \"Accept\": \"application/json\"\n }\n})\n.then(response => {\n console.log(response);\n})\n.catch(err => {\n console.error(err);\n});\n\n\n// Sample result:\n// \"\\\"sDXOD|iW,azfF X\"\n"},"java-asynchttp":{"filename":"get-using-java-asynchttp.java","data":"// \n// Sample for authentication server object / users list[] / password.\n// \n// This is a sample demonstrating how to get the password.\n// \n\n// Note that this sample has been generated by httpsnippet;\n// authentication configuration (usually digest) is not included.\n\nAsyncHttpClient client = new DefaultAsyncHttpClient();\nclient.prepare(\"GET\", \"http://192.168.0.100/restapi/auth/users/:user_account_index/password/\")\n .setHeader(\"Connection\", \"close\")\n .setHeader(\"Accept\", \"application/json\")\n .execute()\n .toCompletableFuture()\n .thenAccept(System.out::println)\n .join();\n\nclient.close();\n\n\n// Sample result:\n// \"\\\"sDXOD|iW,azfF X\"\n"},"powershell-restmethod":{"filename":"get-using-powershell-restmethod.ps1","data":"# \r\n# Sample for authentication server object / users list[] / password.\r\n# \r\n# This is a sample demonstrating how to get the password.\r\n# \r\n\r\n# Note that this sample has been generated by httpsnippet;\r\n# authentication configuration (usually digest) is not included.\r\n\r\n$headers=@{}\r\n$headers.Add(\"Connection\", \"close\")\r\n$headers.Add(\"Accept\", \"application/json\")\r\n$response = Invoke-RestMethod -Uri 'http://192.168.0.100/restapi/auth/users/:user_account_index/password/' -Method GET -Headers $headers\r\n\r\n\r\n# Sample result:\r\n# \"\\\"sDXOD|iW,azfF X\"\r\n"},"csharp-httpclient":{"filename":"get-using-csharp-httpclient.cs","data":"// \r\n// Sample for authentication server object / users list[] / password.\r\n// \r\n// This is a sample demonstrating how to get the password.\r\n// \r\n\r\n// Note that this sample has been generated by httpsnippet;\r\n// authentication configuration (usually digest) is not included.\r\n\r\nvar client = new HttpClient();\r\nvar request = new HttpRequestMessage\r\n{\r\n Method = HttpMethod.Get,\r\n RequestUri = new Uri(\"http://192.168.0.100/restapi/auth/users/:user_account_index/password/\"),\r\n Headers =\r\n {\r\n { \"Connection\", \"close\" },\r\n { \"Accept\", \"application/json\" },\r\n },\r\n};\r\nusing (var response = await client.SendAsync(request))\r\n{\r\n response.EnsureSuccessStatusCode();\r\n var body = await response.Content.ReadAsStringAsync();\r\n Console.WriteLine(body);\r\n}\r\n\r\n\r\n// Sample result:\r\n// \"\\\"sDXOD|iW,azfF X\"\r\n"},"javascript-jquery":{"filename":"get-using-javascript-jquery.js","data":"// \n// Sample for authentication server object / users list[] / password.\n// \n// This is a sample demonstrating how to get the password.\n// \n\n// Note that this sample has been generated by httpsnippet;\n// authentication configuration (usually digest) is not included.\n\nconst settings = {\n \"async\": true,\n \"crossDomain\": true,\n \"url\": \"http://192.168.0.100/restapi/auth/users/:user_account_index/password/\",\n \"method\": \"GET\",\n \"headers\": {\n \"Connection\": \"close\",\n \"Accept\": \"application/json\"\n }\n};\n\n$.ajax(settings).done(function (response) {\n console.log(response);\n});\n\n\n// Sample result:\n// \"\\\"sDXOD|iW,azfF X\"\n"},"ruby-native":{"filename":"get-using-ruby-native.rb","data":"#!/usr/bin/env ruby\n# \n# Sample for authentication server object / users list[] / password.\n# \n# This is a sample demonstrating how to get the password.\n# \n\n# Note that this sample has been generated by httpsnippet;\n# authentication configuration (usually digest) is not included.\n\nrequire 'uri'\nrequire 'net/http'\n\nurl = URI(\"http://192.168.0.100/restapi/auth/users/:user_account_index/password/\")\n\nhttp = Net::HTTP.new(url.host, url.port)\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"Connection\"] = 'close'\nrequest[\"Accept\"] = 'application/json'\n\nresponse = http.request(request)\nputs response.read_body\n\n\n# Sample result:\n# \"\\\"sDXOD|iW,azfF X\"\n"},"java-nethttp":{"filename":"get-using-java-nethttp.java","data":"// \n// Sample for authentication server object / users list[] / password.\n// \n// This is a sample demonstrating how to get the password.\n// \n\n// Note that this sample has been generated by httpsnippet;\n// authentication configuration (usually digest) is not included.\n\nHttpRequest request = HttpRequest.newBuilder()\n .uri(URI.create(\"http://192.168.0.100/restapi/auth/users/:user_account_index/password/\"))\n .header(\"Connection\", \"close\")\n .header(\"Accept\", \"application/json\")\n .method(\"GET\", HttpRequest.BodyPublishers.noBody())\n .build();\nHttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());\nSystem.out.println(response.body());\n\n\n// Sample result:\n// \"\\\"sDXOD|iW,azfF X\"\n"},"cli":{"filename":"get-using-server-cli.sh","data":"#!/bin/sh\n# \n# Sample for authentication server object / users list[] / password.\n# \n# This is a sample demonstrating how to get the password.\n# \n\n# Index into users list array (0-based)\nuser_account_index=5\n\nuom get \"auth/users/${user_account_index}/password\"\n\n# Sample result:\n# \"{=Ryd]> Void in\r if (error != nil) {\r print(error)\r } else {\r let httpResponse = response as? HTTPURLResponse\r print(httpResponse)\r }\r})\r\rdataTask.resume()\r\r\r// Sample result:\r// \"\\\"sDXOD|iW,azfF X\"\r"}}};