JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 21
  • Score
    100M100P100Q27675F
  • License ISC

An unofficial hook into Life360.com's API.

Package Exports

  • life360-node-api

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (life360-node-api) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

life360-node-api

An unofficial implementation of Life360's API in Node.js.

I dissected the HTTP api behind Life360.com. This library allows you to login, see information about your family and circles, and locate your family members.

Install

$ npm install life360-node-api

Usage

const life360_api = require('life360-node-api')
const life360 = new life360_api()

Every function that talks to Life360.com will be asynchronous.

Login with your username and password.

await life360.login('myusername', 'mySecurePassword123')

Get a list of your circles and log the names of each of them

let circles = await life360.listCircles()

for (var circle of circles) {
  console.log(circle.name)
}

Get a list of your circle's members

let myCircle = circles[0]
let members = await myCircle.listMembers()

for (var member of members) {
  console.log(`${member.firstName} ${member.lastName}`)
}