Support

Home Forums Event Espresso Premium API trigger on Event Attended.

API trigger on Event Attended.

Posted: April 29, 2014 at 1:06 am

Viewing 10 reply threads


Jason Paizes

April 29, 2014 at 1:06 am

Hi Team.
We have developed an infusionsoft plugin that handles pre and post event client communications based on EE triggers. So far all is working really well. What I now need is to be able to set a flag in Infusionsoft when we mark an attendee as having attended an event. We are struggling to find documentation around this. Is there a hook that we can tie into which marks attendees as attended?

Thanks a lot.
Regards
Jason


Jason Paizes

April 29, 2014 at 1:24 am

Sorry, this might be a little vague. Our plugin is a wordpress plugin that talks to EE and to Infusionsoft. We want to update Infusionsoft when we mark an attendee as attended in EE (we don’t want the client to have to do anything within Infusionsoft so are driving this from EE). Thanks


Dean

April 29, 2014 at 3:43 am

Hi,

From what I can see there isn’t a hook for the check in. In the admin it looks like it just adds the data directly to the database.

Looks similar in the JSON API as well, it just calls a function to update the database.

I can make a request for hooks to be added to the checkin and checkout functions in the API and admin, but I cannot say if or when these would be added.

Hooks https://eventespresso.com/wiki/event-espresso-3-1-action-hooks/
Filters https://eventespresso.com/wiki/event-espresso-3-1-filters/


Jason Paizes

April 29, 2014 at 4:49 am

Thanks for your response Dean.

Do you know if we could perhaps add a trigger to the DB directly, or can you think of any other way that we could trigger an external update when the “Mark as Attended” button is used? This is the last part of the puzzle and we then have a really powerful application setup.

Thanks a million Dean.
Regards
Jason


Dean

April 29, 2014 at 5:38 am

Well, if it’s just for that sole site, then you could modify the API to add in a hook and use that. It would have to be updated each time the plugin is updated.

In the ticket I submitted, I suggested adding hooks to two functions, _checkin and _checkout, both in the API plugin (includes/resources/3.1/EspressoAPI_Registrations_Resource.class.php)

I’m not a developer so that might not be correct, but it looked fairly good to me.


Jason Paizes

April 29, 2014 at 5:54 am

Thanks a lot for your time on this Dean. We will see what we can do with the API. Will let you know how it goes.

Have an excellent day.
Regards
Jason


Dean

April 30, 2014 at 1:01 am

Thanks Jason and yes please do let me know how you get on.


Jason Paizes

April 30, 2014 at 9:17 am

Hi Dean. We don’t seem to have the file that you referred to above…
(includes/resources/3.1/EspressoAPI_Registrations_Resource.class.php)
Please see:
https://www.dropbox.com/s/puhleqe263yd48e/Screenshot%202014-04-30%2017.18.47.png

Please let me know if we are looking in the wrong place.
Thanks a lot
Regards
Jason


Dean

April 30, 2014 at 9:32 am

Hi Jason,

The EspressoAPI_Registrations_Resource.php file is in the JSON API addon (I wasn’t sure if you were manually checking in from the admin which would be via files in the EE plugin or via the mobile apps which use the JSON API).


Jason Paizes

April 30, 2014 at 11:45 pm

Hi Dean

We have got this right! The file that has a function that handles this is event_list_attendees.php. We have added a hook that we can use… see
https://www.dropbox.com/s/aic5qw6w8g43r92/Screenshot%202014-05-01%2008.32.59.png
I think it would be a really good idea for you to include this hook in the code for future updates.

We now have EE talking seamlesley with Infusionsoft with generic campaigns handling full event management including post event correspondence for attendees and those that did not arrive (all handled from EE without the need to open Infusionsoft). It’s working amazingly.

Cheers
Jason


Dean

May 1, 2014 at 6:50 am

Awesome! Glad you got it sorted. I have added a feature request, but as always I can’t say if or when it would get added.

Viewing 10 reply threads

The support post ‘API trigger on Event Attended.’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso