Posted: January 10, 2020 at 10:07 am
|
I’m working with a CRM and they are trying to run script to export registrants to from Event Espresso and import them into their database. I have created an administrator user and the script allows the user to pull contacts and create contacts. Here is the error code and the script I’m running.
We are running Version 4.10.2.p and my website is adultfinancialed.org
|
Hi, Part of this appears to be an authentication issue. May I ask what type of authentication are you using? The Event Espresso 4 plugin has Basic Authentication bundled, so you could use that method. |
|
|
We are using a very similar basic auth to that, but passing it in as a URL parameter instead of a header. It seems to be the same token though. I’ve gotten passed the authorization errors at this point, but it looks like there were enough changes in the Event Espresso API that I’ll have to rewrite some requests. |
|
It turns out we had not gotten passed the authorization errors as we previously thought. We are having the same issue still. We are using Basic Auth like this:
and tried passing it along through both the |
Circling back to the error message posted in the original post here, the message doesn’t make sense for the URL (it says they don’t have permission to create attendees but the URL is requesting to view events). So we may not have enough details for why you’re getting the error. That said, if the normal WordPress API Basic Auth plugin is activated, the |
|
|
I think I shared the wrong URL initially. The error is actually being generated from this request:
I’ve tried it with both authorization methods, as well as using them individually. — I installed the WordPress API Basic Auth plugin from github and was able to get around this using the Authorization header. Not sure why the URL method stopped working, but hey at least the system is running again! Thanks for your help Josh! |
The support post ‘Script for Creating Importing Registrations into CRM’ 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.