1.2.0 • Published 3 years ago

juntos-por-la-salud-node-client v1.2.0

Weekly downloads
1
License
MIT
Repository
github
Last release
3 years ago

juntos-por-la-salud-node-client

A nodejs client to the juntos por la salud app

https://ventanillasjpls.org

Installation

yarn add juntos-por-la-salud-node-client

# Or
npm install --save juntos-por-la-salud-node-client

Usage

const { upsertClient } = require('juntos-por-la-salud-node-client');

upsertClient({
  client, // See https://github.com/JustUtahCoders/comunidades-unidas-internal/blob/master/api-docs/get-client.md for what client needs to look like
  participantId: '8693e2e4-85cd-4851-9832-ea5595b615e4'  // This is called the Unique ID in the JPLS UI.
  username: process.env.JPLS_USERNAME, // the username for https://ventanillasjpls.org
  password: process.env.JPLS_PASSWORD, // the password for https://ventanillasjpls.org
}).then(participantId => {
  console.log("The participant id is ", participantId)
}).catch(err => {
  // Failed to upsert the client
  console.error(err)
})
1.2.0

3 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago