Skip to content

Commit

Permalink
fixing code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
panperla committed Jan 16, 2024
1 parent 949ec33 commit 7ea7cf0
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ go get -u github.com/panperla/reamaze-go/reamaze
## Example Usage

### Retrieving Articles

```go
package main

Expand All @@ -58,18 +59,18 @@ import (
func main() {
// Replace these values with your Re:amaze credentials
email := "[email protected]"
apiToken := "your-api-token"
brand := "your-brand"
apiToken := "your-api-token"
brand := "your-brand"

// Initialize Re:amaze client
reamazeClient, err := reamaze.NewClient(email, apiToken, brand)
if err != nil {
reamazeClient, err := reamaze.NewClient(email, apiToken, brand)
if err != nil {
log.Println(err)
}

// Example: Get a list of articles
articles, err := reamazeClient.GetArticles()
if err != nil {
articles, err := reamazeClient.GetArticles()
if err != nil {
fmt.Println("Error:", err)
return
}
Expand Down

0 comments on commit 7ea7cf0

Please sign in to comment.