Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Info

We will be adding code snippets in other languages.

2024-04-08 Updated URL for SAS PROC HTTP docset to use Google; removed reference to outdated account request page.

2020-11-11: Updated to use API key authentication

2020-07-07: Added XQuery examples

2019: 10-07: Added an R example

2019-07-09: Added a Java example

2019-05-25: Added a SAS example

...

Note

Fictitious API keys are used in these example code snippets. Substitute them the keys assigned to you, which are accessible via the API Management Developer Portal at https://api.developer.library.cdisc.org. To request a CDISC Library account to access the API Management Developer Portal, visit https://www.cdisc.org/cdisc-library/api-account-request. 

Python

The objective is to obtain a list of CDISC Controlled Terminology that are loaded into the metadata repository. Two libraries you will need to make a REST API request and store the JSON output:

...

Below is a sample program to also obtain a list of CDISC Controlled Terminology. This program is compatible with v9.4 and SAS OnDemand for Academics. For further reading about PROC HTTP, visit select and review on-line documentation at from https://documentationwww.sasgoogle.com/search?docsetId=proc&docsetVersion=9.4&docsetTarget=n1tv5bhcqw9q4ln1btjqicqdqws3.htm&locale=enq=%22proc+http%22+site%3Adocumentation.sas.com&rlz=1C1VDKB_enUS989US993&oq=%22proc+http%22+site%3Adocumentation.sas.com. Example 9 discusses how to specify HEADER statements for a GET operation. For creating access to SAS OnDemand for Academics, visit https://www.sas.com/en_us/software/on-demand-for-academics.htm.

...