quip-api-typescript
Version:
This is the unofficial and incomplete, but TypeScript-compatible and promise-based library to access the [Quip Automation API](https://quip.com/api/).
45 lines (26 loc) • 1.58 kB
Markdown
[](https://codecov.io/gh/piotrekwitkowski/quip-api-typescript)
[](https://www.npmjs.com/package/quip-api-typescript)
This is the unofficial Node.js library to access the [Quip Automation API](https://quip.com/api/).
This library should be considered as Work In Progress. The official [quip-api library](https://github.com/quip/quip-api/) wasn't updated recently and isn't maintained anymore, so I created this one that is more convenient to use thanks to typings and promises.
`npm i quip-api-typescript`
For now, the library supports only access token auth (no OAuth).
```ts
import { QuipClient } from 'quip-api-typescript';
const ACCESS_TOKEN = 'your-access-token';
const client = new QuipClient(ACCESS_TOKEN);
// use like this
client.threads.getThreadHtmlV2({ id: '' }).then(response => doSomething(response));
// or this
client.users.getUser({ id: 'john@acme.com' }).then(response => doSomething(response));
```
More methods, request and response types can be found in the [documentation](https://piotrekwitkowski.github.io/quip-api-typescript/).
* [Quip Automation API Reference](https://quip.com/api/reference)
* [Get a Personal Automation API Access Token](https://quip.com/api/personal-token)
PRs are welcome! Please feel encouraged to star this repo too!