TryGhost / Zapier

Ghost <-> Zapier Integration
https://developer.zapier.com/app/1566
MIT License
5 stars 3 forks source link

Add member "search" #17

Closed naz closed 4 years ago

naz commented 4 years ago

partially blocks https://github.com/TryGhost/Ghost-Zapier/issues/16

Problem

When creating a Zap there's a need to be able to check if member already exists within Ghost.

Example Zaps

Technical solution

Need to add "search" (similar to author search) functionality along with possible changes in Ghost-Admin-API SDK (this needs checking).

Reasoning behind we are adding "search" and not for example "create or update" action. Search is a function that is suggested as the best practice by Zapier:

Create actions can also update existing items—something often paired with a Search to locate the item needing updates first. Search actions, then let users do more with the data they’ve already added to your app. Perhaps they want to avoid adding duplicate items—and prevent errors from your API. .... Search actions can optionally create items if nothing is found for the search.

(reference)

Todo