Skip to content

Commit

Permalink
fix private apiKey
Browse files Browse the repository at this point in the history
  • Loading branch information
vlad-stack committed Jul 25, 2022
1 parent 981e017 commit 9dbb1c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module github.com/outscraper/outscraper-go

go 1.18
go 1.17
4 changes: 2 additions & 2 deletions outscraper.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const (
)

type Client struct {
apiKey string
ApiKey string
}

type Request map[string]string
Expand All @@ -38,7 +38,7 @@ func (c Client) getAPIRequest(path string, parameters map[string]string) (Result
fmt.Println(url.String())

req, _ := http.NewRequest("GET", url.String(), nil)
req.Header.Add("X-API-KEY", c.apiKey)
req.Header.Add("X-API-KEY", c.ApiKey)
req.Header.Add("Client", "Go SDK")

response, doError := httpClient.Do(req)
Expand Down

0 comments on commit 9dbb1c7

Please sign in to comment.