1.3.4 • Published 5 years ago

node-entourage v1.3.4

Weekly downloads
3
License
ISC
Repository
github
Last release
5 years ago

node-entourage

Une API pour Entourage www.entourage.social

Usage

const Entourage = require('node-entourage');
const entourage = new Entourage({
  apiKey: ''
});

Authentification

entourage.login(phoneNumber, code);

Get feeds

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
}

Get feeds by type

entourage.getFeedsByType(
  type, 
  {latitude, longitude}, 
  distance = 10, 
  timeRange = 720,
  before = moment().format('YYYY-MM-DD HH:mm:ss ZZ')
)

type = 'ask_for_help' | 'contribution'

Send participation

entourage.sendParticipation(entourageId, distance, message)

Get Points of Interests

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"
}
1.3.4

5 years ago

1.3.3

5 years ago

1.3.2

6 years ago

1.3.1

6 years ago

1.3.0

6 years ago