Posted: October 22, 2019 at 11:04 am
|
I want to make an event application that allow users to (un)register for events. I have reviewed the espresso documents thoroughly and could not find a working example. Authentication did not seem to have a route nor did registrations toggle_checkin. Could you assist me with this? Thanks |
Hi, A request to un-register a registration would be an example of a PUT or PATCH request: where you would send a request to update the registration’s status (the STS_ID field) to “cancelled” (change to |
|
|
How can I register a user? |
Hi, There are a few plugins that add the ability to add a user: |
|
|
I’m sorry, I was not clear. Right now I’m getting all the events via API call and I’d like to register a user to an event and possibly mark them as attended to the event. Is there an API call that can let me register a wordpress user to an event? Thank you for your previous answers. |
Yes, it’s not clear what your asking because you mentioned “allow users to (un)register for events”. That’s the opposite of registering. Also, generally speaking, a WordPress user is understood as a “WordPress user account”. It sounds like you want to add a registration (not a user account). What you can do is follow these steps to get started: 1) Review and follow the examples in the documentation: |
|
|
That is my mistake. I want to register a user to an event. What would be the next step? |
Step 1 from above would be your first step if you haven’t yet reviewed the REST API documentation for Event Espresso yet. |
|
|
I have reviewed the documentation before yes 🙂 |
So after you make a test registration, you’ll look into the database and check the tables including esp_registration, esp_answer, esp_transaction, esp_datetime, esp_ticket, and so on. There you’ll see exactly what data was added and updated for that registration. Then you can follow the example in the documentation for POSTing an answer: Then, similar to the above example, you’ll add more POST requests to the other endpoints related to the other tables. |
|
The support post ‘Register user via API call’ 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.