List all ScheduleTemplates
1 min
code examples curl request get \\ \ url 'https //developer digitail io/api/v1/schedule templates?filter\[clinic id]=integer' \\ \ 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/schedule templates?filter\[clinic id]=integer", 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/schedule templates?filter\[clinic id]=integer") 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/schedule templates?filter\[clinic id]=integer" 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" 0, "name" "", "clinic id" 0, "date start" "", "date end" "", "vets" \[ { "id" 1, "first name" "john", "last name" "doe", "full name" "john doe", "name with title" "dr john doe", "avatar" "http //digitail test/images/profilepic jpg", "job title" "dr ", "active" true, "clinic" \[ 0 ], "listing index" 1, "video link" "https //digitail com/video" } ], "rules" \[ { "id" 0, "name" "", "visit type ids" \[ 0 ], "weekdays" \[ 0 ], "start time" "08 00 am", "end time" "02 00 pm", "type" "" } ] } ], "links" {}, "meta" {} }// the request was invalid or contained data that was not allowed { "message" "requested filter(s) `filter1` are not allowed allowed filter(s) are date, query, " }// the authorization token is missing or invalid // the user is not authorized to perform the requested operation // the user has sent too many requests in a given amount of time ("rate limiting") max 200 requests per minute