grokify/go-ringcentral-client

Resty.Client does not accept http.RoundTripper

grokify opened this issue · 1 comments

The following error is received:

code: examples/get_extension/get_extension.go

error:

../../api_client.go:117: cannot use c.config.Transport (type http.RoundTripper) as type *http.Transport in argument to rClient.SetTransport: need type assertion

Fixed in 5936ff8

Fix is to upgrade Resty to gopkg.in/go-resty/resty.v1 from gopkg.in/go-resty/resty.v0