Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
jakelumetta authored Jul 31, 2019
1 parent 28ea423 commit b07ee8a
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,22 @@ go get github.com/buttercms/buttercms-go
```

## Pages

Full list of `params` availble in our official [API Documentation](https://buttercms.com/docs/api/?go#pages)

```
params := map[string]string{"foo": "bar"}
ButterCMS.GetPages("news", params)
ButterCMS.GetPage("news", "another-test-page", params)
```

## Content Fields
```
ButterCMS.GetContentFields([]string{"content-field-slug"})
## Collections

// Test Mode
params := map[string]string{"test": 1}
ButterCMS.GetContentFields([]string{"content-field-slug"}, params)
Full list of `params` availble in our official [API Documentation](https://buttercms.com/docs/api/?go#collections)

// Localization
```
params := map[string]string{"locale": "en"}
ButterCMS.GetContentFields([]string{"content-field-slug"}, params)
ButterCMS.GetContentFields([]string{"collection_key"}, params)
```

## Blog Engine
Expand Down

0 comments on commit b07ee8a

Please sign in to comment.