Dynamic Health Partner

 

Browse our guides and interact with our API reference for more information about MEDSAPI EBSCO Partner. Try the API and learn about core concepts.

 

 

 

 

Get All Customers with Article Notes Code Samples

Use the code samples below as examples to create an application in your desired language.  The following code samples use the /article-note-customers endpoint to get all customers who have article notes.  Get started and begin to understand the endpoint by following the examples below in the language of your choice. 

 

# Article Note Customers:

curl -X GET "https://apis.ebsco.com/medsapi-partner-dynamic-health/v1/content/article-note-customers"
  -H "accept: application/json"
  -H "authorization: Bearer TOKEN"
// Article Note Customers:

// Construct the client
OkHttpClient client = new OkHttpClient();

// Create the URL
HttpUrl url = new HttpUrl.Builder()
    .scheme("https")
    .host("apis.ebsco.com")
    .addPathSegment("/medsapi-partner-dynamic-health/v1/content/article-note-customers")
    .build();


// Build the request
Request request = new Request.Builder()
    .url(url)
    .get()
    .addHeader("Accept", "application/json")
    .addHeader("Authorization", "Bearer TOKEN")
    .addHeader("Content-Type", "application/json")
    .build();

// Send the request
Response response = client.newCall(request).execute();
// Article Note Customers: 

const host = "https://apis.ebsco.com";
const path = "/medsapi-partner-dynamic-health/v1/content/article-note-customers";

// Create the Request
const url = host + path;

const settings = {
    async: true,
    crossDomain: true,
    url: url,
    method: "GET",
    headers: {
        Accept: "application/json",
        Authorization: "Bearer TOKEN",
    }
};

// Send the Request
$.ajax(settings).done(function (response) {
    console.log(response);
});
# Article Note Customers:

# Form the URL 
urlstr = File.join("https://apis.ebsco.com", "/medsapi-partner-dynamic-health/v1/content", "article-note-customers")
uri = URI.parse(urlstr)

# Create the HTTP object
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE

# Create the request
request = Net::HTTP::Get.new(uri)
request["Accept"] = "application/json"
request["Authorization"] = "Bearer TOKEN"

# Send the request
response = http.request(request)
# Article Note Customers:

# Form the URL
url = "".join(["/medsapi-partner-dynamic-health/v1/content", "/article-note-customers"])

# Create Connection Instance
conn = http.client.HTTPSConnection("apis.ebsco.com")

# Create the Request Headers
headers = {
    "Authorization": "Bearer TOKEN",
    "Accept": "application/json",
    "Cache-Control": "no-cache"
    }

# Send Request  
conn.request("GET", url, headers)