The LinkIQ service enables the configuration and management of full text linking based on open URL standards. 

 

 

 

 

Get Full Text Finder Links Code Samples

Use the code samples below as examples to create an application in your desired language.  The following code samples use the /{profile}/openurl endpoint which allows you to resolve full text links based on an open url.  Get started and begin to understand the endpoint by following the examples below in the language of your choice. 

 

Code Samples

cURL

curl -X GET --header 'Accept: application/json' --header 'password: PASSWORD' 'https://sandbox.ebsco.io/ftf/ftfaccount/CUSTPROFILE/openurl?issn=1234'

Java

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

// Create the URL
HttpUrl url = new HttpUrl.Builder()
    .scheme("https")
    .host("sandbox.ebsco.io")           
    .addPathSegment("ftf")
    .addPathSegment("ftfaccount")
    .addPathSegment(CUSTPROFILE)
    .addPathSegment("openurl")
    .addQueryParameter("issn", "1234")
    .build();

// Build the request
Request request = new Request.Builder()
    .url(url)
    .get()
    .addHeader("accept", "application/json")
    .addHeader("password", PASSWORD)
    .build();

// Send the request
Response response = client.newCall(request).execute();

JavaScript

var host = "https://sandbox.ebsco.io/ftf/ftfaccount/";
var pathsega = "/openurl";

// Create the Request
var urlstr = host + CUSTPROFILE + pathsega;
var settings = {
  "async": true,
  "crossDomain": true,
  "url": urlstr,
  "method": "GET",
   data: { 
    "issn": "1234"
  },
  "headers": {
    "accept": "application/json",
    "password": PASSWORD
  }
}

// Send the Request
$.ajax(settings).done(function (response) {
  console.log(response);
});

Ruby

# Form the URL 
urlstr = File.join('https://', 'sandbox.ebsco.io', 'ftf', 'ftfaccount', CUSTPROFILE, 'openurl')
uri = URI(urlstr)

query = URI.encode_www_form({
    # Request parameters
    'issn' => '1234'
})
if query.length > 0
  if uri.query && uri.query.length > 0
    uri.query += '&' + query
  else
    uri.query = query
  end
end

# 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_uri)
request["accept"] = 'application/json'
request["password"] = DUMMYPASSWORD

# Send the request
response = http.request(request)

Python

# Form the URL
url = ''.join(['/ftf','/ftfaccount/', CUSTID, '/openurl'])

# Create Connection Instance
conn = http.client.HTTPSConnection("sandbox.ebsco.io")

# Set the Query Parameters
params = urllib.parse.urlencode({'issn': '1234'})

# Create the Request Headers
headers = {
    'accept': "application/json"
    }

# Send Request  
conn.request("GET", url + '?' + params, headers=headers)

# Get Response
res = conn.getresponse()