Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/equanox/ghost-client-go
Incomplete api client for https://github.com/TryGhost/Ghost
https://github.com/equanox/ghost-client-go
Last synced: 16 days ago
JSON representation
Incomplete api client for https://github.com/TryGhost/Ghost
- Host: GitHub
- URL: https://github.com/equanox/ghost-client-go
- Owner: Equanox
- License: mit
- Created: 2020-12-27T12:22:23.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2020-12-27T14:18:09.000Z (about 4 years ago)
- Last Synced: 2024-11-06T03:55:53.315Z (2 months ago)
- Language: Go
- Size: 6.84 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ghost-client-go
Inclomplete api client for https://github.com/TryGhost/Ghost.# Getting Started
* Start a ghost instance using docker https://hub.docker.com/_/ghost
* Create a key for the content api```
u, _ := url.Parse("http://localhost:3001/ghost/api/v3")ghostClient := ghostclient.New(
ghostclient.WithBaseURL(u),
)posts, _ := ghostClient.ContentPosts(
ghostclient.WithKey("62ebdfd5992678506b1e7ddbc3"),
ghostclient.WithInclude("tags", "authors"),
)litter.Dump(posts) // Print posts to stdout
```
[Example](./example/main.go)