Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ourway/ghostex
Ghost blog client library for Elixir
https://github.com/ourway/ghostex
elixir-library ghost-api ghost-blog
Last synced: about 1 month ago
JSON representation
Ghost blog client library for Elixir
- Host: GitHub
- URL: https://github.com/ourway/ghostex
- Owner: ourway
- License: mit
- Created: 2019-08-28T11:14:02.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-09-03T09:54:29.000Z (over 5 years ago)
- Last Synced: 2024-10-29T08:44:40.945Z (about 2 months ago)
- Topics: elixir-library, ghost-api, ghost-blog
- Language: Elixir
- Size: 15.6 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ghostex
[![Build Status](https://travis-ci.org/ourway/ghostex.svg?branch=master)](https://travis-ci.org/ourway/ghostex)
Ghost blog client library for Elixir.
It's work in progress.
This library only suppors `post` at the moment.
I have plans to develop a complete API, but for now it's limited.# Requirements
- Ghost `admin api key`. Please create new one on `{YOUR GHOST API URL}/ghost/#/settings/integrations/new`.# Install
Add `:ghostex` to your project deps:
```elixir
def deps do
[
# ...
{:ghostex, "~> 0.1.1"},
# ...
]
end
```# Usage
```elixir
iex> admin_api_key = "d7f97d66265234665800be85170ae42:e4b59eaf9f4767e56f96753e0e6c91929dcb0284c2b101059bce954fd"
iex> api_url = "https://blog.example.org"
iex> {:ok, client} = Ghostex.Client.start_link [admin_api_key, api_url]
iex> resp = client |> Ghostex.Client.post("hi there", "Wow, __here__", ["test", "api"])
:ok
```
See the docs for more information.