Skip to content

ilsstudent/AlexaLibrarySearch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ex Libris Requirements -

Create an API key for Alexa Search Skill-

  1. Go to https://developers.exlibrisgroup.com/manage/keys/ (to create Primo Search API key)
  2. Click "Add API Key" button
  3. Fill out API key Name (Alexa app), Description (API key for Alexa search), Add permission (Primo Search), SAVE

Create REST API calls to search for "Ernest Hemingway" by KEYWORD, AUTHOR, TITLE, & SUBJECT -

(Go to https://developers.exlibrisgroup.com/primo/apis/ to learn more about Primo REST API's)

KEYWORD API - https://api-na.hosted.exlibrisgroup.com/primo/v1/search?q=any,contains,ernest%20hemingway&offset=0&limit=10&vid=01USC_INST:01USC&tab=Everything&apikey=YOUR_INSTITUTIONS_API_KEY&qInclude=facet_rtype,include,books&scope=MyInst_and_CI&sortby=rank

AUTHOR API - https://api-na.hosted.exlibrisgroup.com/primo/v1/search?q=creator,contains,ernest%20hemingway&offset=0&limit=10&vid=01USC_INST:01USC&tab=Everything&apikey=YOUR_INSTITUTIONS_API_KEY&qInclude=facet_rtype,include,books&scope=MyInst_and_CI&sortby=rank

TITLE API - https://api-na.hosted.exlibrisgroup.com/primo/v1/search?q=title,contains,ernest%20hemingway&offset=0&limit=10&vid=01USC_INST:01USC&tab=Everything&apikey=YOUR_INSTITUTIONS_API_KEY&qInclude=facet_rtype,include,books&scope=MyInst_and_CI&sortby=rank

SUBJECT API - https://api-na.hosted.exlibrisgroup.com/primo/v1/search?q=sub,contains,ernest%20hemingway&offset=0&limit=10&vid=01USC_INST:01USC&tab=Everything&apikey=YOUR_INSTITUTIONS_API_KEY&qInclude=facet_rtype,include,books&scope=MyInst_and_CI&sortby=rank

LIBRARY HOURS API - https://api-na.hosted.exlibrisgroup.com/almaws/v1/conf/libraries/LIBRARY_NAME/open-hours?from=today&format=json&apikey=YOUR_INSTITUTIONS_API_KEY

LIBRARY EVENTS API - https://libraries.usc.edu/events-json

Amazon Alexa Requirements -

USC Libraries Alexa skills have been made available on GitHub. The repository names are -

You are welcome to use any of the USC Libraries Search, Events/Hours, or FAQ skills to create your own skill.

To begin the skill making process first -

Create an Alexa Developers Account (https://developer.amazon.com/), then

  1. Go to https://developer.amazon.com/alexa and log in

    • choose 'Alexa Skills Kit'
    • choose 'Create Skill'
  2. Once your skill intent has been coded, 'Save Model' then 'Build Model'

  3. To submit skill for certification, select skill and choose the 'Certification' tab.

  4. Once the skill passes the 'Validation and Functional Test' choices, select 'Submission'.

The second step in the skill making process -

Create an AWS - Amazon Web Services account (https://aws.amazon.com/console/), then

  1. Go to https://console.aws.amazon.com/console/home?region=us-east-1 and log in

  2. Choose Lambda under AWS Services/All Services/Compute/Lambda

    • choose 'Functions'
    • choose 'Create Function'
  3. Sample API call in index.js (searchtype = any, creator, title, subject)

  4. Once your index.js file has been coded, select the 'SAVE' button

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published