5. Note to Developers SciVerse does not yet support OAuth (3-legged) API calls SciVerse does not yet support OpenSocial people, so there is not yet a persistent user id available to applications
6.
7. SciVerse Framework API and ContextInfo http://developer.sciverse.com/framework#context gadgets.sciverse.getContextInfo (callback) Returns contextual information provided by the hosting application as a JSON object. This includes information such as user search terms, DOI, title, etc. as well as web application data such as page type, platform, etc. authorIdentifier, currentAffiliationId, currentAffiliationName, currentAffiliationCity, currentAffiliationCountry, doi, isbn, keywords, pii, searchTerms, secureAuthToken, timestamp, year function getContext(){ gadgets.sciverse.getContextInfo(getContextCallback); } function getContextCallback(context) { var searchterms = context.searchTerms; authtoken = context.secureAuthtoken;
8. SciVerse Content API data mapping table with search fields and their clusters http://developer.sciverse.com/sciversecontentapiviews2 CLUSTERS
9.
10. API-key and authToken function run() { gadgets.sciverse.getContextInfo(init); } function init(context) { var authtoken = context.secureAuthtoken; var requestHeaders = {}; requestHeaders['X-ELS-APIKey'] = myapikey; requestHeaders['X-ELS-Authtoken'] = authtoken; var params = {}; params[gadgets.io.RequestParameters.HEADERS] = requestHeaders; gadgets.sciverse.makeRequest(url, callback, params); } gadgets.util.registerOnLoadHandler(run);
13. Facets http://developer.sciverse.com/sciversecontentapifacets Different facets are available for each cluster. var scidircluster = "SCIDIR"; var scidirfacets = "contenttype(Journal);"+ // return counts: All, values: // Journal, Book, Reference Work "srctitle(20);"+ // return counts: 5 to 20 "pubyr(20);"+ // returns counts: 5 to 20 "topics();"; // X var url = "http://api.elsevier.com/content/search/index:"+cluster+ "?query="+searchterms+ "&facets="+facets+ "&count="+count+ "&scomode=on"+ "&sort=fd";
14. Subject Areas AGRI - Agricultural and Biological Sciences ARTS - Arts and Humanities BIOC - Biochemistry, Genetics and Molecular Biology BUSI - Business, Management and Accounting CENG - Chemical Engineering CHEM - Chemistry COMP - Computer Science DECI - Decision Sciences DENT - Dentistry EART - Earth and Planetary Sciences ECON - Economics, Econometrics and Finance ENER - Energy ENGI - Engineering ENVI - Environmental Science HEAL - Health Professions IMMU - Immunology and Microbiology MATE - Materials Science MATH - Mathematics MEDI - Medicine NEUR - Neuroscience NURS - Nursing PHAR - Pharmacology, Toxicology and Pharmaceutics PHYS - Physics and Astronomy PSYC - Psychology SOCI - Social Sciences VETE - Veterinary MULT - Multidisciplinary
15. WADLs and XSDs Web Application Definition Language (WADL) Request and Response Objects XML Schema Definitions (XSD) WADL and XSD files: http://schema.elsevier.com/dtds/document/bkapi/ The SciVerse APIs support PRISM implementation of the Dublin Core metadata standard. http://developer.sciverse.com/sciversecontentapiretrievalrequest#sciVerseRetrievalResponse
16.
17. Support API, Data and Backend questions Ale de Vries (senior product manager) Dave Santucci (integration support coord) Programming questions Ryan Dietz (principal SW engineer) Functional Spec / Product Development questions Ben Rubin (product manager) Max Berenstein (product manager) A little bit of everything Remko Caprio (developer evangelist) Github https://github.com/sciversedev