feat: switch to proxy when need be

This commit is contained in:
James Houlahan
2020-04-01 17:20:03 +02:00
parent f239e8f3bf
commit ce29d4d74e
36 changed files with 311 additions and 320 deletions

View File

@ -45,7 +45,7 @@ type UserSettings struct {
// GetUserSettings gets general settings.
func (c *Client) GetUserSettings() (settings UserSettings, err error) {
req, err := NewRequest("GET", "/settings", nil)
req, err := c.NewRequest("GET", "/settings", nil)
if err != nil {
return
@ -99,7 +99,7 @@ type MailSettings struct {
// GetMailSettings gets contact details specified by contact ID.
func (c *Client) GetMailSettings() (settings MailSettings, err error) {
req, err := NewRequest("GET", "/settings/mail", nil)
req, err := c.NewRequest("GET", "/settings/mail", nil)
if err != nil {
return