1.0.2 • Published 1 year ago

node-asana-api v1.0.2

Weekly downloads
-
License
Unlicense
Repository
github
Last release
1 year ago

node-asana-api

Asana API client.

Generated with GitHub - ferdikoomen/openapi-typescript-codegen: NodeJS library that generates Typescript or Javascript clients based on the OpenAPI specification.

I will try to keep the package up to date with new released versions.

Requires Node16+.

To install

npm i node-asana-api

To use

import { AsanaApi } from "node-asana-api";

const client = new AsanaApi({
    BASE: 'https://app.asana.com/api/1.0',
    WITH_CREDENTIALS: true,
    TOKEN: ""
});

Development

Generated with (from repo folder):

cd ..
npm --global -i openapi-typescript-codegen
openapi -c fetch -o ./node-asana-api/ -i https://raw.githubusercontent.com/Asana/developer-docs/master/defs/asana_oas.yaml --name="AsanaApi" --useOptions

Then manually fix duplicates in services/ProjectStatusesService.ts because of an issue in codegen. I'm short on time to fix the generator atm.