the problem is i need to create the url to get the events for an Android app
i have the session id, i could login
and i create this url: http://ticketdog.es/espresso-api/v1/events/{fzy…
but the answer of the system is:
{“status”:”Query parameter ‘q’ not a valid parameter of resource ‘Event'”,”status_code”:400}
i have no idea to continue or get a correct answer
ok i will turn on debugging mode.
anyway you can send me an example of an event query with the session id concat?
i keep getting an error that a parameter is missing when i try to query an event.
I have asked one of the developers to see if he can provide further assistance with this. Please bear with us, as due to the Christmas period staff working hours are erratic.
So if you fetched the session Id and let’s say it’s ‘monkey123’, and your blog’s url is ‘mysite.com’, then you would send the request to ‘mysite.com/espresso-api/v1/events/monkey123’.
The error you’re receiving, saying that “Query parameter ‘q’ not a valid parameter of resource ‘Event'”, means the system thinks you’re sending a query like the following: mysite.com/espresso-api/v1/events/monkey123?q=123 (ie, where “q” is that query parameter). And of course, “q” is not a valid query parameter (whereas “id”,”limit”,”Datetime.id”, etc, are. See documentation for full list).
Does that answer your question?
Thanks Gabriel for posting your exact queries being used. I can reproduce the issue on your server, but the exact same query works fine on mine. So I think there’s nothing wrong with your usage of the API.
SO… What version of the json api are you using? And what version of Event Espresso core? What other addons do you have active? (which may be interfering and adding the ‘q’ query parameter)
hi heres is long list of plugins being used:
Event Espresso version 3.1.35.P
WordPress version WP 3.7.1
Installed plugins
Admin Menu Editor Pro by Janis Elsts version 1.92,
Akismet by Automattic version 2.5.9,
All In One Schema.org Rich Snippets by Brainstorm Force version 1.1.5,
Appointments+ by Hakan Evin version 1.4,
Cookie warning by Marie Manandise, MAJWeb version 1.3,
Duplicator by LifeInTheGrid version 0.4.6,
Event Espresso – Calendar by Event Espresso version 2.2.0.p,
Event Espresso – Custom Template Display by Event Espresso version 1.0,
Event Espresso – Pasarela de pago para CECA (modulosdepago.es) by Mikel Martin (ZhenIt Software) version 1.0,
Event Espresso – MailChimp Integration by version 1.2,
Event Espresso – Members Addon by Event Espresso version 1.9.8.p,
Event Espresso – Multi Event Registration by Seth Shoultes version 1.0.5.p,
Event Espresso – Permissions by Event Espresso version 1.5.5.p,
Event Espresso – Roles and Permissions Pro by Event Espresso version 2.0.6,
Event Espresso – Recurring Events by Event Espresso version 1.1.8.p,
Event Espresso Template – Category Accordion by Event Espresso version 1.0.p,
Event Espresso Template – Recurring Events Table w/ Dropdowns by Event Espresso version 1.0,
Event Espresso – Ticketing by Event Espresso version 2.1.p,
Event Espresso by Event Espresso version 3.1.35.P,
Gravity Forms + Custom Post Types by Brad Vincent version 3.0.1,
Gravity Forms by rocketgenius version 1.7.13,
Gravity Forms MailChimp Add-On by rocketgenius version 2.3,
Gravity Forms Signature Add-On by Rocketgenius version 1.3,
Gravity Forms User Registration Add-On by rocketgenius version 1.7,
Installer by OnTheGoSystems Inc. version 0.7.1,
Post Types Order by Nsp Code version 1.6.5,
Pretty Link Pro by Caseproof version 1.6.5,
Revolution Slider by ThemePunch version 3.0.95,
User Switching by John Blackbourn version 0.8.5,
WordPress SEO by Joost de Valk version 1.4.22,
WP SMTP by BoLiQuan version 1.1.6,
WP Smush.it by WPMU DEV version 1.6.5.4,
Afiliado Royal by Caseproof, LLC version 1.3.3
Yeah I agree with Josh. However, I’m guessing one of those addons you have is adding a random ‘q’ to the querystring. WE’ve tested the JSON api with all the event espresso addons and there’s no conflicts. But those other ones…. easiest way to do that would be to deactivate them one by one and see if the problem persists, or start with none active and activate them one by one…
This reply was modified 10 years, 9 months ago by Michael Nelson.
Viewing 13 reply threads
The support post ‘json api problem getting events’ 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.