Support

Home Forums Event Espresso Premium Event Espresso API – Endpoint URL

Event Espresso API – Endpoint URL

Posted: October 17, 2013 at 3:08 am

Viewing 26 reply threads


clewis

    October 17, 2013 at 3:08 am

    Hi,

    The site: http://edithunlimited.co.za is using WordPress 3.6.1 / Event Espresso 3.1.35.1.P and have installed the JSON API add on. The folder has been uploaded to the WordPress directory where wp-admin, wp-content etc. are, I have checked the directory permission is 755. I have seen the xmlrpc.php file is also in this directory – Under “Settings – Writing” I have the following: http://rpc.pingomatic.com/, does this mean it is enabled?

    I have tried using the test url to see my events: http://edithunlimited.co.za/espresso-api/events/public and I get a blank screen. What should the endpoint url be?

    Your assistance would be much appreciated, my client has an event over the weekend with over 1500 attendees and it would be tedious to mark the attendees off on paper.

    Thanks,
    Cindy


    Anonymous

      October 17, 2013 at 3:19 am

      Hi Cindy,

      The JSON API is a plugin and as such is installed the same as a normal plugin.

      You can follow this guide for installing event espresso, the steps are the same for the JSON API.

      http://staging.eventespresso.com/wiki/installing-event-espresso/

      It is the expresso-services folder which is placed within the root directory.

      Once you follow the above you should be able to access the API Settings under Event Espresso->API Settings.


      Anonymous

        October 17, 2013 at 3:24 am

        Also to note

        The espresso-services folder is used for android devices and is not required for the JSON API. They are totally independent of each other.

        Apple devices using the latest HD app can all use the JSON API.
        Android Devices currently need the espresso-services folder.

        So it depends on the devices you will be using as to which one (or both) you may need.

        (Adding this as I mentioned the esspresso-services folder above)


        clewis

          October 17, 2013 at 3:45 am

          Hi Tony,

          Thank you for your responses, my client will be using an iPad to scan the tickets which is why I loaded the JSON API add on, so I assume I don’t need the “espresso-services” folder?

          I have activated the plugin and I am able to see the API settings under the Event Espresso menu. I have change the settings as follows:

          API Session Timeout After: Never
          Allow Public API Access: Allow
          Default Query Limits: Events = 50 | Attendees = 1000 | Registrations = 1000

          Not sure what to do next :(

          Thanks,
          Cindy


          Anonymous

            October 17, 2013 at 4:02 am

            In that case you only need the JSON API yes.

            Normally you would either just login with the app to test, or go to (in your case)

            http://edithunlimited.co.za/espresso-api/v1/events/public.pretty_json

            Which would show your events in JSON format (yours does not)

            A plain white-screen as seen on the url above can mean a few things, is it possible to enable WP_DEBUG briefly to see if any errors are thrown?


            clewis

              October 17, 2013 at 4:15 am

              Hi Tony,

              Not a code whizz :) – So to clarify I need to change the wp-config.php file code to: define(‘WP_DEBUG’, true); ?


              Anonymous

                October 17, 2013 at 4:17 am

                Yep that’s the one.

                You may then notice (or not) errors/warnings popping up all over the site.

                They will go once again when WP_DEBUG is set to false again.

                Let me know once its changed and I’ll take a look


                Anonymous

                  October 17, 2013 at 4:21 am

                  Hi Cindy,

                  You can set it back to false now.


                  clewis

                    October 17, 2013 at 4:24 am

                    Hi Tony,

                    I have changed the wp-config.php file, specifically “define(‘WP_DEBUG’, true);” and re-uploaded the file.


                    Anonymous

                      October 17, 2013 at 4:29 am

                      :) You can set it back to false again now

                      Firstly can you disable the espresso-https plugin as it does not work with the JSON API. I would recommend using Better WP Security plugin’s HTTPS feature as this does work with the API.

                      See option 2 here
                      http://staging.eventespresso.com/wiki/espresso-sslhttps/

                      Before installing Better WP Security, just leave espresso-https disabled/deleted so we can check that is the root of the issue.


                      clewis

                        October 17, 2013 at 4:38 am

                        Okay, so here are the errors received, I will set it back to false now.

                        Notice: Undefined variable: wordpress_https in wp-content/plugins/espresso-https.1.0/espresso-https.php on line 883


                        clewis

                          October 17, 2013 at 5:00 am

                          Hi Tony,

                          I think there is Bette WP Security is conflicting with one of the other plugins on the site as I get the following error: “You do not have sufficient permissions to access this page”. I have experienced this before.

                          So when logging in on the iPad what is the endpoint URL?


                          Anonymous

                            October 17, 2013 at 5:14 am

                            The Endpoint URL is the WordPress install directory.

                            This can be your domain or if WordPress is installed in another folder (for example ‘wordpress’) if would be domain.com/wordpress

                            In you case I would start with http://edithunlimited.co.za as you endpoint.

                            Quick question – is your site part of a multi-site network or single site?


                            clewis

                              October 17, 2013 at 5:29 am

                              Hi Tony,

                              Firstly, thank you so much for the quick response :)

                              I have tried using “http://edithunlimited.co.za” but I get an error:
                              “Server response is zero-length; no data.

                              This is a single site.


                              clewis

                                October 17, 2013 at 5:31 am

                                Apologies not sure why the &#8221 is at the end of the url :)


                                clewis

                                  October 17, 2013 at 5:37 am

                                  and the test link “http://edithunlimited.co.za/espresso-api/v1/events/public.pretty_json” still gives me a blank screen….


                                  Anonymous

                                    October 17, 2013 at 5:42 am

                                    Hmmm…

                                    Is WP Better Security disabled now or active?

                                    In fact, would it be possible to get the login details to investigate this further? If so please use http://staging.eventespresso.com/send-login-details/


                                    clewis

                                      October 17, 2013 at 5:56 am

                                      Hi Tony,

                                      I have disabled the Better WP Security for now… I have filled in the form so you can access the site. I look forward to having this resolved ;)


                                      Anonymous

                                        October 17, 2013 at 9:47 am

                                        Hi Cindy,

                                        There’s a few things this could be. I have a feeling its either Access manager plugin or possibly your htaccess file which is causing it.

                                        “You do not have sufficient permissions to access this page” shouldn’t be happening and again is likely a symptom of the issue.

                                        I would start with the easiest which is a full troubleshoot. At a time to suit yourselves disable all Non-Event Espresso plugins and refresh the JSON test page. See if it works. It it does its an issue with one of the plugins.

                                        Start activating each plugin 1 by 1, refreshing the test page between each activation. See which one causes it to to stop loading and report back so we can investigate further.

                                        Unlikely this will cause any issue’s whatsoever but just in-case I would recommend doing a full site back (including the Database) beforehand (better safe than sorry).

                                        You can do this via http://staging.eventespresso.com/wiki/how-to-back-up-your-site/
                                        Or using a # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress

                                        Again make sure you have a backup before modifying.


                                        clewis

                                          October 18, 2013 at 5:27 am

                                          Hi Tony,

                                          Thanks again for your help, I backed the site up and deactivated all the plugins except the Event Espresso ones and found that NextGen Gallery is the culprit, all the other plugins are working fine even Better WP Security is working now :)

                                          I can now access the app on the iPad although it keeps timing out when I search for an event…. Is this because of connection speed? I am connecting to the internet wi-fi as I do not have a micro sim for my iPad…..

                                          Thanks,
                                          Cindy


                                          clewis

                                            October 19, 2013 at 12:56 am

                                            Hi Tony,

                                            My events and attendees are showing up on the iPad now, thank you!
                                            But every ticket I scan is declined saying “already checked in” and a tick appears next to the name in the attendee list a while later. I am scanning to check in not manually checking the attendees in so not sure why this is happening, more of your assistance would be appreciated.

                                            Thanks,
                                            Cindy


                                            Aristos Polydorou

                                              October 19, 2013 at 4:06 pm

                                              Hi guys,

                                              Am new in Espresso Events. Am trying to make this API to work.
                                              my website is http://www.richintermedia.com , what is the url that i should use on the ipad/phone event espresso application ?

                                              Also in the username and password i should put the wordpress admin credentials ?

                                              thanks,

                                              Aristos


                                              Dean

                                              • Support Staff

                                              October 21, 2013 at 12:20 am

                                              @Aristos – If you are just needing access for scanning tickets etc then the endpoint is just http://www.richintermedia.com/. Yes the username and password is your site username/password as you are effectively logging into your site.


                                              clewis

                                                October 21, 2013 at 11:08 am

                                                Hi,

                                                I am now able scan and check people in and out using the iPad app, works brilliantly! :)

                                                But I urgently need to resolve some issues since loading the JSON API…. Now I cannot export my attendee lists to excel as I get the following error:

                                                Fatal error: Call to undefined method DateTime::createFromFormat() in /home/edithunl/public_html/wp-content/plugins/event-espresso/includes/functions/export.php on line 501

                                                in the Excel file itself. I believe this has to do with updating my PHP from 5.2 to 5.3, I have requested my Server Administrator to assist me with this and see if this will fix this error.

                                                Thanks,
                                                Cindy


                                                Anonymous

                                                  October 22, 2013 at 2:07 am

                                                  Hi Clewis,

                                                  Apologies for my delay in getting back to you.

                                                  DateTime::createFromFormat() is a core function included with PHP 5.3+ so it would seem strange you are getting this error.

                                                  If you go to Event Espresso -> System Status. Scroll down to ‘Server Environment’ you can see your current PHP version there. Is it greater than 5.3?


                                                  Aristos Polydorou

                                                    October 23, 2013 at 7:36 am

                                                    Hi Dean and thanks for the reply. Am able to login on my iphone 5 but i dont see any events ????


                                                    Anonymous

                                                      October 23, 2013 at 9:09 am

                                                      Hi Aristos,

                                                      Could you please start your own thread explaining your issue, this one has been marked as resolved. It is generally a good idea to start your own thread for any issue’s as it helps both us with monitoring issues and other users troubleshooting as each individual issue will be slightly different.

                                                      In your new thread, could you please include details of your server – found under Event Espresso -> System Status under ‘Server Configuration’.

                                                      Also, if your site is part of a multi-site network or single site.

                                                      Thank you

                                                      Viewing 26 reply threads

                                                      The support post ‘Event Espresso API – Endpoint URL’ 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 - Staging Server