{"_id":"55b0c6def202b12100cda2e7","__v":5,"version":{"_id":"5505581f728deb23005ec0f4","forked_from":"54ad7b1d9219922100751799","project":"54ad7b1d9219922100751796","__v":4,"createdAt":"2015-03-15T09:59:59.748Z","releaseDate":"2015-03-15T09:59:59.748Z","categories":["55055820728deb23005ec0f5","55055820728deb23005ec0f6","554213dacbc48d0d001544ef","55421a598aeff51700a20db6","55a64fe680c8a30d00b325e0"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"2.0.0","version":"2.0"},"category":{"_id":"55a64fe680c8a30d00b325e0","version":"5505581f728deb23005ec0f4","pages":["55a652b680c8a30d00b325ec","55a65a4251457325000e4d40","55a6705b80c8a30d00b32686","55a772393efe0c2f0074c8fe","55a7ae383efe0c2f0074caaf","55ae2ba22723e51900898fa0","55ae32628576b92300291cb3","55b0b0bbe7abe62300f9a8bb","55b0c6def202b12100cda2e7","55bf80af19dd820d0008a006","55c06be7344dc40d00f55859","55c06ccb37298d0d00088c72","561d098a09e6540d002ff602"],"project":"54ad7b1d9219922100751796","__v":13,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-07-15T12:19:50.489Z","from_sync":false,"order":1,"slug":"rest-api-coming-soon","title":"REST API"},"user":"55a38410912a6e2300882b88","project":"54ad7b1d9219922100751796","updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-07-23T10:50:06.573Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"examples":{"codes":[{"language":"shell","code":"curl -H Authorization: \"Token 2a5bb3c446bdd71076202dcce4dcff57\" https://api2.vcita.com/v2/appointments","name":""},{"code":"require 'net/http'\nrequire 'json'\n\nuri = URI('https://api2.vcita.com/v2/appointments')\n\nres = Net::HTTP.start(uri.host, uri.port, :use_ssl => true) do |http|\n  request = Net::HTTP::Get.new uri\n  request[\"Authorization\"] = \"Token 2a5bb3c446bdd71076202dcce4dcff57\"\n  http.request(request)\nend\n\nparsed_body = JSON.parse(res.body)","language":"ruby"},{"code":"import urllib\nimport urllib2\nimport json\n\nurl = 'https://api2.vcita.com/v2/appointments'\nheaders = { 'Authorization' : 'Token 2a5bb3c446bdd71076202dcce4dcff57' }\nrequest = urllib2.Request(url, None, headers)\nresponse = urllib2.urlopen(request)\n\nparsed_data = json.loads(response.read())","language":"python"}]},"method":"get","results":{"codes":[{"language":"json","status":200,"name":"","code":"[\n   {\n    \"id\": \"2e8e07f9\",\n    \"title\": \"30 min introduction phone call\",\n    \"notes\": \"\",\n    \"start_time\": \"2013-04-14T12:25:00.000+03:00\",\n    \"interaction_details\": \"332\",\n    \"duration\": 75,\n    \"price\": \"5.0\",\n    \"currency\": \"EUR\",\n    \"state\": \"completed\",\n    \"service_id\": \"g4uzd0ufu9hgk31l\",\n    \"conversation_id\": \"4gbg7azgwgrd1jbe\",\n    \"client_id\": \"j22ny3hx1r0gig0h\",\n    \"staff_id\": \"09b12b85ddc34b7e\",\n    \"invoices\": [],\n    \"payment_id\": null\n  },\n]"},{"name":"","code":"{\n  \"status\"=>\"failure\", \n  \"message\"=>\"401 Unauthorized\"\n}","language":"json","status":400}]},"settings":"","auth":"required","params":[{"_id":"5912f38f65888319004e6cea","ref":"","in":"query","required":false,"desc":"Use 'updated_since' to get appointments which were updated after a certain timestamp. Format is in ISO 8601.","default":"","type":"timestamp","name":"updated_since"},{"_id":"5912f38f65888319004e6ce9","ref":"","in":"query","required":false,"desc":"Use 'updated_until' to get appointments which were updated until a certain timestamp. Format is in ISO 8601.","default":"","type":"timestamp","name":"updated_until"}],"url":"/v2/appointments"},"isReference":false,"order":5,"body":"","excerpt":"/v2/appointments is an endpoint that returns a list of all appointments. The response is in JSON format.","slug":"v2appointments","type":"endpoint","title":"/v2/appointments"}

get/v2/appointments

/v2/appointments is an endpoint that returns a list of all appointments. The response is in JSON format.

Definition

{{ api_url }}{{ page_api_url }}

Parameters

Query Params

updated_since:
timestamp
Use 'updated_since' to get appointments which were updated after a certain timestamp. Format is in ISO 8601.
updated_until:
timestamp
Use 'updated_until' to get appointments which were updated until a certain timestamp. Format is in ISO 8601.

Examples


Result Format


User Information

Try It Out

get
{{ tryResults.results }}
Method{{ tryResults.method }}
Request Headers
{{ tryResults.requestHeaders }}
URL{{ tryResults.url }}
Request Data
{{ tryResults.data }}
Status
Response Headers
{{ tryResults.responseHeaders }}