Ghost API script example

I put together a simple function usable in node for accessing Ghost’s API
https://gist.github.com/aaronmfparr/ceca24cf18e1f71ad907d4763414f3dc

This works.

It is bare bones. I considered going with a class, and constructing it for each endpoint, but that seemed like an egregious waste of time to me because I’d have to maintain it in tandem with changes to the API, and it obfuscates the simple fact that this is just a get request.

Again this works, so I don’t need help on this, but I am open to comments and pointers. Also if it is useful to you, have at it. Enjoy.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.