|
@ -28,7 +28,7 @@ type guggyGifResult struct { |
|
|
type guggyService struct { |
|
|
type guggyService struct { |
|
|
id string |
|
|
id string |
|
|
serviceUserID string |
|
|
serviceUserID string |
|
|
APIKey string |
|
|
|
|
|
|
|
|
api_key string |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
func (s *guggyService) ServiceUserID() string { return s.serviceUserID } |
|
|
func (s *guggyService) ServiceUserID() string { return s.serviceUserID } |
|
@ -106,7 +106,7 @@ func (s *guggyService) text2gifGuggy(querySentence string) (*guggyGifResult, err |
|
|
return nil, err |
|
|
return nil, err |
|
|
} |
|
|
} |
|
|
req.Header.Add("Content-Type", "application/json") |
|
|
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) |
|
|
res, err := client.Do(req) |
|
|
if res != nil { |
|
|
if res != nil { |
|
|