Skip to content

Commit

Permalink
Merge pull request #4 from jjideenschmiede/development
Browse files Browse the repository at this point in the history
Fixing bug & update readme
  • Loading branch information
gowizzard authored Nov 26, 2021
2 parents aa7ccae + ccde1d4 commit f40275e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ If a new dispatch note is to be created, then this can be done directly with the
```go
// Define request
r := gosendcloud.Request{
publicKey: "",
secretKey: "",
PublicKey: "",
SecretKey: "",
}

// Define request body
Expand Down
6 changes: 3 additions & 3 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ type Config struct {

// Request is to define the request data
type Request struct {
publicKey string
secretKey string
PublicKey string
SecretKey string
}

// Send is to send a new request
Expand All @@ -42,7 +42,7 @@ func (c Config) Send(r Request) (*http.Response, error) {
url := transferProtocol + baseUrl + apiVersion + c.Path

// Create basic authentication
auth := "Basic " + base64.StdEncoding.EncodeToString([]byte(r.publicKey+":"+r.secretKey))
auth := "Basic " + base64.StdEncoding.EncodeToString([]byte(r.PublicKey+":"+r.SecretKey))

// Define client
client := &http.Client{}
Expand Down

0 comments on commit f40275e

Please sign in to comment.