Skip to content
A wrapper for the Ghost blog's RESTful JSON API, written in C#
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
GhostSharp.Tests
GhostSharp
.gitignore
.travis.yml
GhostSharp.sln
LICENSE
README.md

README.md

Travis License: MIT NuGet Open Source Helpers Twitter Language

GhostSharp

This is a wrapper around the Ghost API v2.0, a RESTful JSON API built into the core of the Ghost blogging platform.

I like Ghost, C# and experimenting with APIs, so this seemed like an interesting pursuit. I don't have a use for it yet, but if you find one please let me know! Check out the official Ghost API docs and read about my own experience using them.

I tagged the wrapper as I wrote it to work with v1.14.0 of the API.

Usage

Accessing the Content API

If you need to access the Content API, all you need is the URL of your site and a Content API Key. Once you have those pieces of information, you can access any "public" content.

Versioning

This wrapper is written around v2.0 of the Content API, currently the latest version. If they update the API in the future, I'll probably create a tag for the current release, before updating to the newest one.

Running the Tests

The tests are setup to run against an actual instance of the Ghost blog, using a valid API key. There are details in the TestBase.cs class that you'll need to fill in, such as a valid API key, valid post ID, valid post slug, etc, etc.

Problems?

Open an issue, and include errors, unexpected behavior, steps to reproduce, etc. The more details, the better!

Feel free to open a PR if you figure out how to fix it.

Ideas?

Open an issue. I can't promise when new features or suggestions will get implemented, but I'll check them out.

Release Notes

  • 1.0.2 - Beginning work to support Admin API.
    Breaking change: GhostAPI is now split into GhostContentAPI and GhostAdminAPI
  • 1.0.1 - Added comments to aid in intellisense.
  • 1.0.0 - Covers the Content API endpoints.
You can’t perform that action at this time.