biojs-rest-tessapi
Version:
API client to interface with the TeSS Rest API. Retrieve a list of metedata about upcoming Life science events, training materials, and other training opportunities. Return results filtered by metadata facets
22 lines (19 loc) • 580 B
JavaScript
var app = require("biojs-rest-tessapi");
var api = new app.EventsApi(); // Allocate the API class we're going to use.
api.eventsJsonGet(
{
"q": "RNA-SEQ",
"country[]": ["United Kingdom", "Belgium"]
}, //see lib/api/EventsApi.js for full params options
function(error, data, response){
html = '<h1> Found ' + data.length + ' results </h1> \n'+
'<h2> See on TeSS at ' + response.req.url + '</h2>\n'
data.forEach(function(value){
html = html +
"<a href=\"" +
value['url'] + "\">" +
value['title'] + "</a>\n"
})
rootDiv.innerText = html
}
)