Releases: love-bhardwaj/snyk-api-client
Releases · love-bhardwaj/snyk-api-client
Webhooks API added
Webhooks API added
- Webhooks Snyk API group added
- Better error handling for HTTP requests
Minor bug fix
Bugfix
- Fixes import bug in types
Pre-release candidate
Release Notes
Use the Snyk API client to consume the Snyk API without worrying about the internals of how to call the API endpoint. Each group of API has corresponding functions defined to consume the relevant API endpoints. The package still in development, happy for inputs.
- Use ClientConfig to change client defaults example:
ClientConfig.set({ apiToken });
- Import group of related API endpoints
import { Org } from "snyk-api-client";
- User the imported object to call relavent endpoints
const { response } = await Org.listUserOrgs({ apiToken: "your-api-token" })