(The build may be in "failing" status due to temporary downtime of the B2Share Training Website at the time of the CI Build. This server is used to simulate the API requests and test the client. Do not worry, as this is normal.).
What is this?
npm i @feup-infolab/node-b2share-v2
Use in your project
Warning: Make sure you create the access token for the respective host. For instance if you are interacting with the training url(trng-b2share.eudat.eu), create the access token for this host in https://trng-b2share.eudat.eu/user, if you are using the main url create the token in https://b2share.eudat.eu/user
var B2ShareClient = ;/*** Initiates the B2ShareClient* @param host the host required to execute the requests(ex: trng-b2share.eudat.eu)* @param access_token the user's access token* @constructor*/var client = url access_token//API calls/*** Lists the communities, no arguments needed* @param callback*/client