Skip to content

Commit

Permalink
Fix README
Browse files Browse the repository at this point in the history
  • Loading branch information
joseph-neeraj committed Aug 30, 2024
1 parent 2a6b283 commit 27d5c0a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,13 @@ Alternatively, you can use helper function for http request.
Usage briefly described below, but you can also refer to the test package for examples.

```go
import "github.com/mastercard/oauth1-signer-go"
import (
"strings"
"github.com/mastercard/oauth1-signer-go"
)

//
payload := "<insert payload>"
payload := strings.NewReader("<insert payload>")
request, _ := http.NewRequest("POST", "https://sandbox.api.mastercard.com/service", payload)
signer := &oauth.Signer{
ConsumerKey: consumerKey,
Expand Down

0 comments on commit 27d5c0a

Please sign in to comment.