Simple client for Trello generated from the Trello openapi specification using openapi-ts.
- Add the following dependency to
package.json
.
{
"dependencies": {
"@gewis/planka-client": "github:GEWIS/planka-client"
}
}
- Import the desired service and call the desired endpoint. Heyapi provides more information on how to use the client.
import { client, authorize } from '@gewis/planka-client';
client.setConfig({
baseUrl: 'https://example.com',
})
/** Fetch access token with `authorize` or `authorizeOidc` */
const accessToken = authorize(...)
client.setConfig({
baseUrl: 'https://example.com',
headers: {
Authorization: `Bearer ${accessToken}`
}
})
- Start Planka with
docker compose up -d
- Run tests with
yarn test