Retrieve a Clinic
1 min
code examples curl request get \\ \ url https //developer digitail io/api/v1/clinic/{id} \\ \ header 'accept application/json'var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("content type", "application/json"); var requestoptions = { method 'get', headers myheaders, redirect 'follow' }; fetch("https //developer digitail io/api/v1/clinic/{id}", requestoptions) then(response => response text()) then(result => console log(result)) catch(error => console log('error', error));require "uri" require "json" require "net/http" url = uri("https //developer digitail io/api/v1/clinic/{id}") https = net http new(url host, url port) https use ssl = true request = net http get new(url) request\["accept"] = "application/json" request\["content type"] = "application/json" response = https request(request) puts response read body import requests import json url = "https //developer digitail io/api/v1/clinic/{id}" payload = {} headers = { 'accept' 'application/json', 'content type' 'application/json' } response = requests request("get", url, headers=headers, data=payload) print(response text) responses // successful operation { "data" { "id" 1, "name" "animal hospital of all pets", "address" "yigal alon st 126, tel aviv yafo, 6744332, israel", "phone" "555 555 5555", "email" "clinic\@example com", "street" "yigal alon street", "street number" 126, "region" "tel aviv district", "timezone" "asia/jerusalem", "zip" 6744332, "country" {}, "owner" {}, "vets" \[ "" ], "hasgroup" false, "group id" 0, "rooms" \[ { "id" 1, "clinic id" 1, "name" "consultation room 1" } ], "reminders" \[ "" ], "meetings link" "https //meetings example com", "token" "", "cash register notes" "", "sms enabled" 0, "appointment sms" 0, "appointment email" 0, "reminder appointment sms" 0, "reminder appointment email" 0, "reminder health plan sms" 0, "reminder health plan email" 0, "first availability not before" 0, "has intake" 0, "website" "", "gtm id" "", "public notice" "", "latitude" "", "longitude" "", "logo" "", "slug" "" } }