Module: Freshjots

Defined in:
lib/freshjots.rb,
lib/freshjots/version.rb

Overview

Tiny client for the Fresh Jots API (freshjots.com/docs).

Usage:

client = Freshjots::Client.new          # reads FRESHJOTS_TOKEN from ENV
client.append("cron-jobs-prod", "backup ok")
client.note("cron-jobs-prod")[:plain_body]
client.create(title: "Deploy log")[:filename]   # server-derived

All methods raise Freshjots::ApiError on non-2xx, with code/status/details from the API’s stable error envelope.

Response shapes: GET /notes is the only endpoint that wraps its payload ({ notes: […] }). show / show-by-filename / create return the note hash at the TOP LEVEL — there is no { note: … } wrapper.

Defined Under Namespace

Classes: ApiError, Client

Constant Summary collapse

VERSION =
"0.2.1"