CLISocial
Social
13 `hanzo` commands for Social, each calling one operation on api.hanzo.ai.
Package social is posting to every social account you own, now or on a schedule.
13 commands · API reference →
| Command | Calls | What it does |
|---|---|---|
hanzo social accounts get <id> | GET /v1/social/accounts/{id} | Returns one of the org's connected accounts by id — its network, handle, status and timestamps — or 404. |
hanzo social accounts set <id> | PUT /v1/social/accounts/{id} | Replaces the account's network, handle and status with what the body carries, and answers with the stored row. |
hanzo social accounts rm <id> | DELETE /v1/social/accounts/{id} | Removes one connected account from the org and answers 204 with no body; an id that is not there is 404. |
hanzo social accounts list | GET /v1/social/accounts | Returns the org's connected accounts — each one's id, network, handle, status and timestamps, most-recently-updated… |
hanzo social accounts create | POST /v1/social/accounts | Records a social account for the org and answers 201 with the stored row, including the generated id later calls… |
hanzo social posts publish <id> | POST /v1/social/posts/{id}/publish | Publishes the post immediately to the connected accounts on its channel and answers with the updated row, carrying the… |
hanzo social posts get <id> | GET /v1/social/posts/{id} | Returns one of the org's posts by id, with its current status, scheduled time, media and — once it has published — the… |
hanzo social posts set <id> | PUT /v1/social/posts/{id} | Replaces the post's content, channel, status, scheduled time and media with what the body carries, and answers with the… |
hanzo social posts rm <id> | DELETE /v1/social/posts/{id} | Removes one post from the org and answers 204 with no body; an id that is not there is 404. |
hanzo social posts list | GET /v1/social/posts | Returns the org's posts — content, channel, status, scheduled time, media and timestamps — most-recently-updated first. |
hanzo social posts create | POST /v1/social/posts | Stores a post for the org and answers 201 with the stored row. |
hanzo social providers | GET /v1/social/providers | Reports each supported network's publish-readiness: whether this deployment holds the OAuth application credentials for… |
hanzo social summary | GET /v1/social/summary | Returns four counts for the caller's org: total posts, how many are scheduled, how many have published, and how many… |
How is this guide?