Vonage / vonage-go-sdk

A lightweight library to help Go users everywhere integrate with the Vonage APIs. Issues and PRs all really welcome!!
https://vonage.github.io/vonage-go-sdk/
Apache License 2.0
51 stars 32 forks source link

Custom HTTP client #46

Closed Ghvstcode closed 3 years ago

Ghvstcode commented 3 years ago

The previous SDK had a NewClient function that accepts a custom HTTP client and the auth set. I can't seem to find my way around how to include a custom HTTP client with this library. Also, amazing work with the library!

Ghvstcode commented 3 years ago

Hey, My bad! After a bit of digging into the code, it turns out there actually is functionality for adding a custom HTTP client. Here is a link to the documentation surrounding that just in case someone else needs it https://vonage.github.io/vonage-go-sdk/examples/tips#changing-the-base-url