Skip to content

Latest commit

 

History

History
61 lines (47 loc) · 1.59 KB

README.md

File metadata and controls

61 lines (47 loc) · 1.59 KB

Stars Build Status

Postman client, generated from the OpenAPI spec.

Usage

package main

import (
	"fmt"
	"postman"
	"postman/request/getallapis"
)

func main() {
	client := postman.NewClientFromEnv()
	res, err := client.GetAllApis(
		getallapis.WithWorkspace("your workspace"),
		getallapis.WithSince("your since"),
		getallapis.WithUntil("your until"),
		getallapis.WithCreatedBy("your created by"),
		getallapis.WithUpdatedBy("your updated by"),
		getallapis.WithIsPublic(true),
		getallapis.WithName("your name"),
		getallapis.WithSummary("your summary"),
		getallapis.WithDescription("your description"),
		getallapis.WithSort("your sort"),
		getallapis.WithDirection("your direction")
	)
	if err != nil {
		panic(err)
	}
	fmt.Println(res)
}

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.