Ghost Publisher v0.1.2 GhostPublisher View Source

Publish posts and upload remote images into Ghost blogs

Link to this section Summary

Functions

Publish posts in to a Ghost CMS instance.

Upload a remote image into a Ghost CMS instance.

Link to this section Functions

Link to this function

publish_post(post, ghost_base, ghost_api)

View Source

Publish posts in to a Ghost CMS instance.

You need a post structure, a Ghost instance base url and a Ghost instance api key.

Example of a Ghost Post struct:

%{ title: "", html: "", feature_image: "", tags: ["Tag"], authors: ["user@mail.example"], status: "published" }

Link to this function

upload_image(url, ghost_base, ghost_api)

View Source

Upload a remote image into a Ghost CMS instance.

You need an image url, a Ghost instance base url and a Ghost instance api key.