topscholars / tasks

0 stars 0 forks source link

Add new Zapier Webhooks for TS API #4

Closed ghost closed 10 years ago

ghost commented 10 years ago

Background: A REST API for the TS system has been implemented. When the Registration form is submitted on the WP site, the Zapier plugin interfaces with the Gravity Forms plugin to trigger a webhook to the TS API. The student's name and email address is entered into the TS database. The student's user type is denoted as "prospective". No email is sent to the student. (In comparison, note that if a staff enters the student information manually via the TS web form, the student is marked as a "scholar" and does get a verification email.)

Request: Since my trial Zapier account expires in 12 days, please add two new Zaps to your account according to the example below. You should add one for TS and one for TS2. The setup should be the same for both, except for the subdomains (ts vs ts2) and the auto-generated Zap URL that goes into the Zapier WP plugin.

image image image

joshuarusso commented 10 years ago

Ok - added the two zaps. Tried it out with a less intensive form though. Use the Test Registration Form - requires less fields for now until we get it up and running perfect.

Works great - immediately came into the DB. Awesome dude. Will email you the Zapier credentials so you can check it out. This is awesome though.

ghost commented 10 years ago

Sounds good.

A couple of notes about the API: (1) It is currently public. In the future, I should implement API keys for its usage. (2) If there is an error in using it, e.g. duplicate email address, it simply ignores the form entry. In the future, I can have it send an email to someone about errors.

joshuarusso commented 10 years ago

Hmmm, I think a duplicate email makes sense to not populate. That would indicate the user is already enrolled - but I get the idea of issues. Let's definitely map this out a bit more.