Get Dawakhana Config
curl --request GET \
--url https://api.eka.care/ipd/service/dawakhana/config \
--header 'auth: <auth>'import requests
url = "https://api.eka.care/ipd/service/dawakhana/config"
headers = {"auth": "<auth>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {auth: '<auth>'}};
fetch('https://api.eka.care/ipd/service/dawakhana/config', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.get("https://api.eka.care/ipd/service/dawakhana/config")
.header("auth", "<auth>")
.asString();using RestSharp;
var options = new RestClientOptions("https://api.eka.care/ipd/service/dawakhana/config");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("auth", "<auth>");
var response = await client.GetAsync(request);
Console.WriteLine("{0}", response.Content);
require 'uri'
require 'net/http'
url = URI("https://api.eka.care/ipd/service/dawakhana/config")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["auth"] = '<auth>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"enabled": true
}
}{
"success": true,
"error": "<string>"
}{
"message": "<string>"
}Settings
Get Dawakhana Config
Overview
This API returns whether the in-house pharmacy (Dawakhana) is enabled for your workspace. When enabled, Dawakhana is listed as a pharmacy and orders can be placed with it.
Dawakhana is enabled by default: a workspace that has never changed the setting returns enabled: true.
GET
/
ipd
/
service
/
dawakhana
/
config
Get Dawakhana Config
curl --request GET \
--url https://api.eka.care/ipd/service/dawakhana/config \
--header 'auth: <auth>'import requests
url = "https://api.eka.care/ipd/service/dawakhana/config"
headers = {"auth": "<auth>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {auth: '<auth>'}};
fetch('https://api.eka.care/ipd/service/dawakhana/config', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.get("https://api.eka.care/ipd/service/dawakhana/config")
.header("auth", "<auth>")
.asString();using RestSharp;
var options = new RestClientOptions("https://api.eka.care/ipd/service/dawakhana/config");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("auth", "<auth>");
var response = await client.GetAsync(request);
Console.WriteLine("{0}", response.Content);
require 'uri'
require 'net/http'
url = URI("https://api.eka.care/ipd/service/dawakhana/config")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["auth"] = '<auth>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"enabled": true
}
}{
"success": true,
"error": "<string>"
}{
"message": "<string>"
}Was this page helpful?

