NAV
shell ruby python javascript

Introduction

The ODA.org Annual Session Schedule and CE data is fully integrated with the WordPress REST API. This allows ODA data to be created, read, updated, and deleted using requests in JSON format and using WordPress REST API Authentication methods and standard HTTP verbs which are understood by most HTTP clients.

The default response format is JSON. Requests with a message-body use plain JSON to set or update resource attributes. Successful requests will return a 200 OK HTTP status.

Some general information about responses: Dates are returned in format: 2022-09-30 12:00:00

Staging Base Endpoint: https://odadev.stagingwm.com/wp-json/oda/v2/

Production Base Endpoint: https://oda.org/wp-json/oda/v2/

Last Update: 2022-06-13 15:00:00

Annual Session Schedule

Get All Annual Session Events

require "uri"
require "net/http"

url = URI("https://odadev.stagingwm.com/wp-json/oda/v2/annual-session-schedule/")

https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true

request = Net::HTTP::Get.new(url)

response = https.request(request)
puts response.read_body
import http.client

conn = http.client.HTTPSConnection("odadev.stagingwm.com")
payload = ''
headers = {
}
conn.request("GET", "/wp-json/oda/v2/annual-session-schedule/", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
curl --location --request GET 'https://odadev.stagingwm.com/wp-json/oda/v2/annual-session-schedule/' 
var myHeaders = new Headers();
var requestOptions = {
  method: 'GET',
  headers: myHeaders,
  redirect: 'follow'
};

fetch("https://odadev.stagingwm.com/wp-json/oda/v2/annual-session-schedule/", requestOptions)
  .then(response => response.text())
  .then(result => console.log(result))
  .catch(error => console.log('error', error));

The above command returns JSON structured like this:

[
  {
    "43593": {
        "name": "T11: Obstructive Sleep Apnea: Looking Beyond the Teeth and Saving Lives!",
        "classid": "12344",
        "course_id": "T11",
        "ce_hours": "3",
        "room_number": "155",
        "start_date_time": "2022-09-30 09:00:00",
        "end_date_time": "2022-09-30 12:00:00",
        "agenda_item_description": "<p>Dentists are uniquely positioned among healthcare providers to easily evaluate for signs of obstructive sleep apnea. Oral appliance therapy performed by a qualified dentist can also be an effective treatment, literally saving lives. In this lecture Dr. Spencer will review the basics of normal sleep, snoring and obstructive sleep apnea in adults and children.</p>\n<p>You will most likely be thinking that you and everyone you know must have sleep apnea before he is through! Don’t worry though; he will also cover diagnosis and treatment of obstructive sleep apnea, including the dentist’s role. If you or someone close to you may have sleep apnea (like your patients) you owe it to yourself and them to take this course and potentially change, or literally save, their lives.</p>\n<p><strong>Learning Objectives:</strong></p>\n<ul>\n<li>Understand normal sleep and how to improve sleep.</li>\n<li>Understand how obstructive sleep apnea affects adults and children.</li>\n<li>Understand possible problems and side effects of oral appliance therapy.</li>\n</ul>\n<p><strong>Note:  A workshop accompanies this lecture.  See Course Code T24.</strong></p>\n",
        "limit": "200",
        "fees": {
            "member_fee": "90",
            "nonmember_fee": "155",
            "s-o_fee": "71"
        },
        "tracks": [
            "Oral Medicine",
            "Preventative Care"
        ],
        "speakers": {
            "speaker": {
                "1": {
                    "name": "Jamison R. Spencer, DMD, MS",
                    "bio": "<p>Dr. Jamison Spencer is the director of Dental Sleep Medicine for the Center for Sleep Apnea and TMJ, in Boise, Idaho and Salt Lake City, Utah. Dr. Spencer has personally treated thousands of patients with sleep apnea and TMJ problems, and now focuses on helping dentists help their patients with such problems.</p>\n<p>Dr. Spencer is the Past-President of the American Academy of Craniofacial Pain (AACP), a Diplomate of the American Board of Craniofacial Pain, a Diplomate of the American Board of Dental Sleep Medicine, a Diplomate of the American Board of Craniofacial Dental Sleep Medicine and has a Masters in Craniofacial Pain from Tufts University. He taught head and neck anatomy at Boise State University is adjunct faculty at the University of the Pacific School of Dentistry and the University of North Carolina at Chapel Hill. Dr. Spencer created Spencer Study Club, an online education, mentoring and implementation program to help dentists and their teams help more of their patients with sleep apnea and TMJ disorders.</p>\n<p>Dr. Spencer now lives in Pleasant View, Utah with his wife of 30 years, Jennifer, and their three children (of six) who are still at home. Dr. Spencer enjoys outdoor activities including running, skiing, waterskiing and mountain biking, and can still out ski all of his children.</p>\n<p><strong>Presenting Courses:</strong> T11; T24; F27</p>\n",
                    "speaker-image": "https://odadev.stagingwm.com/wp-content/uploads/Spencer.webp"
                }
            }
        },
        "audiences": [
            "Assistants",
            "Dentists",
            "EFDAs",
            "Front Desk",
            "Hygienists",
            "Office Managers"
        ],
        "osdb_formats": [
            "A-1"
        ],
        "allowed_registration_codes": [
            "ABC"
        ],
        "class_types": [
            "Test Class Type"
        ]
    },
    "43589": {
        "name": "5 Lifestyle Habits That Sabotage Healing",
        "classid": "12345",
        "course_id": "T10",
        "ce_hours": "3",
        "room_number": "123",
        "start_date_time": "2022-09-30 09:00:00",
        "end_date_time": "2022-09-30 12:00:00",
        "agenda_item_description": "<p>Your patients don’t leave the stress, poor sleeping patterns (insomnia, apnea, snoring), physical fitness (or lack of) or eating patterns (mindless eating and evening feeding frenzies) in the car before they sit in your chair. There’s irrefutable scientific evidence that these habits have the ability to ramp up inflammation or dial it down. Chronic background inflammation is a key player in all degenerative disease. Well adjusted, rested, physically active, healthy eating patients enjoy a physiology that supports a positive response to your treatments.</p>\n<p><strong>Learning Objectives:</strong></p>\n<ul>\n<li>Understand why your sedentary patients don’t heal as well as your active-living patients.</li>\n<li>Discover how eating habits have the ability to dial down or ramp up inflammation.</li>\n<li>Develop a conversation style to positively impact our patients at the new patient or re-care exam.</li>\n</ul>\n",
        "limit": "200",
        "fees": {
            "member_fee": "90",
            "nonmember_fee": "155",
            "s-o_fee": "71"
        },
        "tracks": [
            "Endodontics",
            "Forensic Dentistry"
        ],
        "speakers": {
            "speaker": {
                "1": {
                    "name": "Uche Odiatu, DMD",
                    "bio": "<p><strong>Uche Odiatu, DMD</strong></p>\n<p>Dr. Uche Odiatu is the co-author of <em>The Miracle of Health</em>, a professional member of the American College of Sports Medicine and a practicing dentist in Toronto. He has been an invited guest on over 400 radio and TV shows from Atlanta to Alaska, from Canada AM to ABC 2020, to KCTX Texas FM, to SiriusXM.  Creating serious shifts in how people feel about head-to-toe conditioning is his mandate.  This busy dad of four is an NSCA Certified Personal Trainer, certified boot camp instructor, certified yoga instructor and has given over 400 lectures in England, Canada, the USA, the Bahamas, Denmark, Bermuda and Norway. His inspiring take-action sessions always entertain as well as educate. His exercise workshops leave attendees with the feeling that fitness and physical conditioning is easy, effortless and doable. For more information, please visit:  <a href=\"http://www.DrUche.com\">www.DrUche.com</a>; Twitter @FitSpeakers; Instagram @FitSpeakers.</p>\n<p><strong>Presenting Courses: </strong> T10; T17</p>\n",
                    "speaker-image": "https://odadev.stagingwm.com/wp-content/uploads/Odiatu-T10-scaled.jpeg"
                }
            }
        },
        "audiences": [
            "Assistants",
            "Dentists",
            "EFDAs",
            "Front Desk",
            "Office Managers"
        ],
        "osdb_formats": [
            "A-1"
        ],
        "allowed_registration_codes": [
            "ABC"
        ],
        "class_types": [
            "Test Class Type"
        ]
    }
}
]

This endpoint retrieves all Annual Session events.

HTTP Request

GET https://odadev.stagingwm.com/wp-json/oda/v2/annual-session-schedule/

Query Parameters

Parameter Default Description

Get a Specific Event

require "uri"
require "net/http"

url = URI("https://odadev.stagingwm.com/wp-json/oda/v2/annual-session-schedule/43593")

https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true

request = Net::HTTP::Get.new(url)

response = https.request(request)
puts response.read_body
import http.client

conn = http.client.HTTPSConnection("odadev.stagingwm.com")
payload = ''
headers = {
}
conn.request("GET", "/wp-json/oda/v2/annual-session-schedule/43593", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
curl --location --request GET 'https://odadev.stagingwm.com/wp-json/oda/v2/annual-session-schedule/43593'
var myHeaders = new Headers();

var requestOptions = {
  method: 'GET',
  headers: myHeaders,
  redirect: 'follow'
};

fetch("https://odadev.stagingwm.com/wp-json/oda/v2/annual-session-schedule/43593", requestOptions)
  .then(response => response.text())
  .then(result => console.log(result))
  .catch(error => console.log('error', error));

The above command returns JSON structured like this:

{
    "43593": {
        "name": "T11: Obstructive Sleep Apnea: Looking Beyond the Teeth and Saving Lives!",
        "classid": "12344",
        "course_id": "T11",
        "ce_hours": "3",
        "room_number": "155",
        "start_date_time": "2022-09-30 09:00:00",
        "end_date_time": "2022-09-30 12:00:00",
        "agenda_item_description": "<p>Dentists are uniquely positioned among healthcare providers to easily evaluate for signs of obstructive sleep apnea. Oral appliance therapy performed by a qualified dentist can also be an effective treatment, literally saving lives. In this lecture Dr. Spencer will review the basics of normal sleep, snoring and obstructive sleep apnea in adults and children.</p>\n<p>You will most likely be thinking that you and everyone you know must have sleep apnea before he is through! Don’t worry though; he will also cover diagnosis and treatment of obstructive sleep apnea, including the dentist’s role. If you or someone close to you may have sleep apnea (like your patients) you owe it to yourself and them to take this course and potentially change, or literally save, their lives.</p>\n<p><strong>Learning Objectives:</strong></p>\n<ul>\n<li>Understand normal sleep and how to improve sleep.</li>\n<li>Understand how obstructive sleep apnea affects adults and children.</li>\n<li>Understand possible problems and side effects of oral appliance therapy.</li>\n</ul>\n<p><strong>Note:  A workshop accompanies this lecture.  See Course Code T24.</strong></p>\n",
        "limit": "200",
        "fees": {
            "member_fee": "90",
            "nonmember_fee": "155",
            "s-o_fee": "71"
        },
        "tracks": [
            "Oral Medicine",
            "Preventative Care"
        ],
        "speakers": {
            "speaker": {
                "1": {
                    "name": "Jamison R. Spencer, DMD, MS",
                    "bio": "<p>Dr. Jamison Spencer is the director of Dental Sleep Medicine for the Center for Sleep Apnea and TMJ, in Boise, Idaho and Salt Lake City, Utah. Dr. Spencer has personally treated thousands of patients with sleep apnea and TMJ problems, and now focuses on helping dentists help their patients with such problems.</p>\n<p>Dr. Spencer is the Past-President of the American Academy of Craniofacial Pain (AACP), a Diplomate of the American Board of Craniofacial Pain, a Diplomate of the American Board of Dental Sleep Medicine, a Diplomate of the American Board of Craniofacial Dental Sleep Medicine and has a Masters in Craniofacial Pain from Tufts University. He taught head and neck anatomy at Boise State University is adjunct faculty at the University of the Pacific School of Dentistry and the University of North Carolina at Chapel Hill. Dr. Spencer created Spencer Study Club, an online education, mentoring and implementation program to help dentists and their teams help more of their patients with sleep apnea and TMJ disorders.</p>\n<p>Dr. Spencer now lives in Pleasant View, Utah with his wife of 30 years, Jennifer, and their three children (of six) who are still at home. Dr. Spencer enjoys outdoor activities including running, skiing, waterskiing and mountain biking, and can still out ski all of his children.</p>\n<p><strong>Presenting Courses:</strong> T11; T24; F27</p>\n",
                    "speaker-image": "https://odadev.stagingwm.com/wp-content/uploads/Spencer.webp"
                }
            }
        },
        "audiences": [
            "Assistants",
            "Dentists",
            "EFDAs",
            "Front Desk",
            "Hygienists",
            "Office Managers"
        ],
        "osdb_formats": [
            "A-1"
        ],
        "allowed_registration_codes": [
            "ABC"
        ],
        "class_types": [
            "Test Class Type"
        ]
    }
}

This endpoint retrieves a specific event.

HTTP Request

GET https://odadev.stagingwm.com/wp-json/oda/v2/annual-session-schedule/<ID>

URL Parameters

Parameter Description
ID The ID of the event to retrieve

Errors

The ODA.ORG API uses the following error codes:

Error Code Meaning
400 Bad Request -- Your request is invalid.
401 Unauthorized -- Your API key is wrong.
403 Forbidden -- The request is hidden for administrators only.
404 Not Found -- The specified event could not be found.
405 Method Not Allowed -- You tried to access a event with an invalid method.
406 Not Acceptable -- You requested a format that isn't json.
410 Gone -- The event requested has been removed from our servers.
429 Too Many Requests -- You're requesting too many events! Slow down!
500 Internal Server Error -- We had a problem with our server. Try again later.
503 Service Unavailable -- We're temporarily offline for maintenance. Please try again later.