go-zabbix icon indicating copy to clipboard operation
go-zabbix copied to clipboard

Create session with existing token

Open sigmonsays opened this issue 4 years ago • 1 comments

If I have an existing token, there seems to be no way to create a session with a token and a *http.Client

If I construct a *Session manually i can specify a token, however client is not exported I can't specify a token and set a custom http client. By exporting client we achieve both.

I made a PR #35 to address this.

sigmonsays avatar Jun 29 '20 18:06 sigmonsays