Support

Home Forums Event Espresso Premium API Add-On To Send Data Out?

API Add-On To Send Data Out?

Posted: September 11, 2014 at 10:43 am

Viewing 5 reply threads


Kurt Black

September 11, 2014 at 10:43 am

Is the API Add-On just for inbound messaging (i.e., for apps to access data from our Event Espresso install), or can I also initiate and send data to other 3rd party apps with this Add-On?

I need to initiate an HTTP POST transaction upon successful payment/approval of a registration. I’m sending a simple HTTP POST transaction to a 3rd party webinar app with basic regsitration information (attendee name, email, phone, and a custom field called schedule). Can this be done with this Add-On?


Lorenzo Orlando Caum

  • Support Staff

September 11, 2014 at 1:22 pm

Hi Kurt,

The JSON API add-on is used for retrieving information from Event Espresso:

https://eventespresso.com/wiki/json-api-add-on/


Lorenzo


Kurt Black

September 11, 2014 at 7:35 pm

Thanks Lorenzo. So is there any way to initiate an HTTP POST from a registration (from Eventespresso to a 3rd party app)? Either as delivered, with a different add-on or custom developed?


Sidney Harrell

September 12, 2014 at 8:57 am

There are two hooks that you could use. One is fired off when the admin updates the attendee’s payments, the other is fired off when the attendee makes a payment.
The action “action_hook_espresso_update_attendee_payment_status” is fired in the admin. The filter “filter_hook_espresso_update_attendee_payment_data_in_db” is fired from the payment page.
You might want to take a look in the Infusionsoft add-on’s index.php file at line 245. You’ll see where the IS add-on hooks it’s function that it needs to fire off after a payment update. You would basically do the same thing in a custom functions plugin, except that your function would fire off a curl request to do the HTTP POST.


Kurt Black

September 19, 2014 at 2:39 pm

Hi Sidney,

Thanks so much for this. I’ll look into these files a little closer and see what I come up with. This might be a bit beyond my development capabilities, as I know just enough to be dangerous, but I’ll see what I come up with after looking at docs.

I just need to execute a HTTP POST at the time of customer payment to send the registration details to webinarjam (which is where we deliver the product).

Thanks again for pointing me in the right direction. let me see what I come up with and I’ll report back on this thread shortly to give an update.

Kurt


Dean

September 22, 2014 at 12:14 am

Hi,

Let us know if you have any other questions.

We also have a list of recommended developers should you need one: https://eventespresso.com/developers/event-espresso-pros/

Viewing 5 reply threads

The support post ‘API Add-On To Send Data Out?’ 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