From 15aaa3b3a064a6420cbc6326df30210ef6e1b72f Mon Sep 17 00:00:00 2001 From: Luke Barnard Date: Thu, 29 Sep 2016 14:18:16 +0100 Subject: [PATCH] APIKey -> api_key --- src/github.com/matrix-org/go-neb/services/guggy/guggy.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/github.com/matrix-org/go-neb/services/guggy/guggy.go b/src/github.com/matrix-org/go-neb/services/guggy/guggy.go index d409069..1903efb 100644 --- a/src/github.com/matrix-org/go-neb/services/guggy/guggy.go +++ b/src/github.com/matrix-org/go-neb/services/guggy/guggy.go @@ -28,7 +28,7 @@ type guggyGifResult struct { type guggyService struct { id string serviceUserID string - APIKey string + api_key string } func (s *guggyService) ServiceUserID() string { return s.serviceUserID } @@ -106,7 +106,7 @@ func (s *guggyService) text2gifGuggy(querySentence string) (*guggyGifResult, err return nil, err } req.Header.Add("Content-Type", "application/json") - req.Header.Add("apiKey", s.APIKey) + req.Header.Add("apiKey", s.api_key) res, err := client.Do(req) if res != nil {