tv2regionerne / statamic-events

0 stars 0 forks source link

N8N nodes for Event addon #10

Open SylvesterDamgaard opened 9 months ago

SylvesterDamgaard commented 9 months ago

We should create N8N nodes which can communicate with Statamic through the Private API and the events addon. The nodes should consist of CRUD operations for collections, taxonomies and assets.

To make things simple, we can just use manual webhooks to initiate events for a first release. Later on I would like a deeper integration where the webhooks can be created directly through N8N.

https://docs.n8n.io/integrations/creating-nodes/build/

ryanmitchell commented 2 months ago

How is this different from whats already done?

See: https://github.com/tv2regionerne/n8n-nodes-statamic/blob/main/nodes/StatamicEvents/StatamicEvents.ts and https://github.com/tv2regionerne/statamic-events/blob/53b2b4566f33e834647f363e66bad52a77185264/src/ServiceProvider.php#L114-L138

SylvesterDamgaard commented 2 months ago

How is this different from whats already done?

See: https://github.com/tv2regionerne/n8n-nodes-statamic/blob/main/nodes/StatamicEvents/StatamicEvents.ts and

https://github.com/tv2regionerne/statamic-events/blob/53b2b4566f33e834647f363e66bad52a77185264/src/ServiceProvider.php#L114-L138

It's not different. We should continue making the n8n code so we can release it. :) So not a backend thing, but the frontend thing.