honeycombio / libhoney-go

Go library for sending data to Honeycomb
Apache License 2.0
58 stars 40 forks source link

Add support to retrieve team and environment #183

Closed MikeGoldsmith closed 2 years ago

MikeGoldsmith commented 2 years ago

Which problem is this PR solving?

Adds support for retrieving a team name and associated environment given an API key. This is similar to the existing VerifyWriteKey and VerifyAPIKey functions, but also returns the environment. The library uses the 1/auth endpoint to retrieve this information.

Short description of the changes