Skip to content

libninjacom/postman-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Postman client, generated from the OpenAPI spec

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages