Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/libninjacom/postman-go

Postman client, generated from the OpenAPI spec
https://github.com/libninjacom/postman-go

golang openapi postman

Last synced: 20 days ago
JSON representation

Postman client, generated from the OpenAPI spec

Awesome Lists containing this project

README

        



Stars


Build Status

Postman client, generated from the OpenAPI spec.

# Usage

```go
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

* [API Documentation](https://www.postman.com/postman/workspace/postman-public-workspace/documentation/12959542-c8142d51-e97c-46b6-bd77-52bb66712c9a)

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

# Contributing

Contributions are welcome!

*Library created with [Libninja](https://www.libninja.com).*