Module: Apertur

Defined in:
lib/apertur.rb,
lib/apertur/client.rb,
lib/apertur/crypto.rb,
lib/apertur/errors.rb,
lib/apertur/version.rb,
lib/apertur/signature.rb,
lib/apertur/http_client.rb,
lib/apertur/resources/keys.rb,
lib/apertur/resources/stats.rb,
lib/apertur/resources/upload.rb,
lib/apertur/resources/polling.rb,
lib/apertur/resources/uploads.rb,
lib/apertur/resources/sessions.rb,
lib/apertur/resources/webhooks.rb,
lib/apertur/resources/encryption.rb,
lib/apertur/resources/destinations.rb

Overview

Ruby SDK for the Apertur image upload API.

Examples:

Quick start

require "apertur"

client = Apertur::Client.new(api_key: "aptr_test_abc123")
session = client.sessions.create(max_images: 5)
client.upload.image(session["uuid"], "/path/to/photo.jpg")

Verify a webhook signature

Apertur::Signature.verify_webhook(request_body, signature_header, secret)

See Also:

Defined Under Namespace

Modules: Crypto, Resources, Signature Classes: AuthenticationError, Client, Error, HttpClient, NotFoundError, RateLimitError, ValidationError

Constant Summary collapse

VERSION =
"0.1.0"