Une API pour Entourage www.entourage.social
const Entourage = require('node-entourage');
const entourage = new Entourage({
apiKey: ''
});
entourage.login(phoneNumber, code);
entourage.getFeeds(
{latitude, longitude},
distance = 10,
timeRange = 720,
before = moment().format('YYYY-MM-DD HH:mm:ss ZZ')
)
timeRange = {
720: 30 days,
24: 24 hours,
192: 8 days
}
entourage.getFeedsByType(
type,
{latitude, longitude},
distance = 10,
timeRange = 720,
before = moment().format('YYYY-MM-DD HH:mm:ss ZZ')
)
type = 'ask_for_help' | 'contribution'
entourage.sendParticipation(entourageId, distance, message)
entourage.getPOIS(
categoryIds = [1,2,3,4,5,6,7],
{latitude, longitude},
distance = 10
)
categoryId = {
1: Food = "Se nourrir",
2: Shelter = "Se loger",
3: Healing = "Se soigner",
4: Freshen up = "Se rafraichir",
5: Orientation = "S'orienter",
6: Toileting = "S'occuper de soi",
7: Reinsertion = "Se reinserer"
}