Skip to main content
Install: go get github.com/SmartlyQ/smartlyq-go · GitHub · pkg.go.dev · Go 1.22+, standard library only.

Quickstart

Every API resource is a field on the client - client.Social, client.Images, client.Videos, client.Articles, client.SEO, client.Contacts, client.Chatbots, client.Captain, client.Workspaces, client.Profiles, and the rest. Responses come back as an Envelope whose Data field is raw JSON you unmarshal into your own types.

Configuration

Per-request options are the last argument of every method:

Async jobs

Generation endpoints return a job - poll it until it completes (see Async jobs):

Error handling

The full method reference lives in the repository README; request and response schemas are in the API Reference.

Next steps

API Reference

Request and response schemas for every endpoint.

Async jobs

How generation jobs work and how to poll them.

Source on GitHub

Issues, changelog, and the full method reference.