Version

Creator Tasks

A project's creator tasks as a connector's creator surface lists and settles them — what a member bought that the creator hands over by hand, listed by state and marked done through the dashboard's own action.

Subscriby\Connector\Core\CreatorTasks. A task opens when a member buys a plan that grants a place no connector gates, a perk the creator hands over themselves, and marking it done issues the grant behind it and tells the member. Both calls take the CreatorRef of the account talking and run as that creator with the dashboard's own rules, and every refusal reaches you as CreatorTasksRefused with a stable reason.

listForProject()

foreach ($this->tasks->listForProject($creator, $project, CreatorTaskState::Open, 20) as $task) {
    // $task->memberName, ->resourceTitle, ->instructions, ->dueAt, ->isDone()
}

The project's tasks newest first, each a CreatorTaskDetails: the member who bought and their id, the place to grant and its id, the creator's instructions to themselves, the due date when one was set, and when it was marked done. CreatorTaskState::Open is the ones still waiting, Completed the ones done, All both; a member or a place that is gone is named as such rather than left blank.

complete()

$done = $this->tasks->complete($creator, $task->id);

Marks the task done through the dashboard's own action: the grant behind it is issued, the member is told their access is ready, and the task comes back with completedAt set. A task already done, or one whose purchase has ended, is refused as invalid with the core's sentence.

Refusals

ReasonWhen
creator_unknownThe ref names no creator.
project_unknownThe project is not one the creator may manage.
task_unknownThe task is not one the creator may manage.
invalidThe task is already done, or the purchase behind it has ended.
not_permittedThe creator may not settle the project's tasks.

How is this guide?

Last updated on

Version

On this page

Subscriby is a product
designed by you — for you.
No boardroom full of executives deciding what we ships next. Our roadmap always shaped by you with your feedback.

Share feedback or a request

For AI agents: llms.txt · llms-full.txt