1.4.4 β€’ Published 6 months ago

@algea_care/xpertyme-api v1.4.4

Weekly downloads
-
License
LICENCE
Repository
github
Last release
6 months ago

What❓

This is a little package for talking to the expertyme api in typescript

Why πŸ€·β€β™‚οΈ

The point of this lib is to allow consumers to

  • have typings for various xpertyme apis
  • just consume functions like 'getUsers' and not worry about generating tokens etc
  • abstract away all type casting / error handling and all other api related chores

It just makes it easier to talk to the apis from one central code base

How βš™οΈ

Just npm i you are good to go (if working on this package)

if consuming

npm i @algea_care/xpertyme-api and use it in your project like so

import const { user } from '@algea_care/xpertyme-api'

const myNewUser = await user.create({email: 'example@example.com', ...})

The result of the call and the payload to it will already by typecast etc for you

Structure

There are not just one but a few places to get data from (apis) so what is exported is an object where each key represents an api that you can talk to.

there is one place that we request access tokens as the tokens work on all apis. That means you need to provide some env vars when using the package (to get the access tokens), see config

Configuration πŸ”§

Have a look at env.example but essentially you need to state the api domain, client secret and client id and you are good to go πŸš€

1.4.4

6 months ago

1.4.3

9 months ago

1.4.2

9 months ago

1.4.0

9 months ago

1.3.1

11 months ago

1.3.0

11 months ago

1.2.9

1 year ago

1.2.8

1 year ago

1.2.7

1 year ago

1.2.6

1 year ago

1.2.5

1 year ago

1.2.3

1 year ago

1.2.2

1 year ago

1.2.1

1 year ago

1.2.0

1 year ago

1.1.13

1 year ago

1.1.12

1 year ago

1.1.11

1 year ago

1.1.10

1 year ago

1.1.9

1 year ago

1.1.8

1 year ago

1.1.7

1 year ago

1.1.6

1 year ago

1.1.5

1 year ago

1.1.4

1 year ago

1.1.3

1 year ago

1.1.2

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago