Skip to content

libninjacom/postman-ts

Repository files navigation

Stars Build Status

Postman client, generated from the OpenAPI spec.

Usage

import {PostmanClient} from "postman"

async function main() {
    const client = PostmanClient.fromEnv()
    const response = await client.getAllApis()
    console.log(response)
}

main()

This example loads configuration from environment variables, specifically:

  • POSTMAN_API_KEY

Documentation

You can see working examples of every API call in the examples/ directory.

Contributing

Contributions are welcome!

Library created with Libninja.