Posted: December 27, 2013 at 6:52 am
|
the problem is i need to create the url to get the events for an Android app |
|
Hi, Have you made sure the API is public? Check the JSON settings in the Event Espresso menu. |
|
hello |
Hi Gabriel, Can I ask which Server Platform you are using? Linux/Apache? You could also try enabling ‘API Debug mode’ and see if that throws any more errors. Event Espresso -> API Settings. ‘API Debug Mode’ |
|
|
ok i will turn on debugging mode. |
|
Hi Gabriel, 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). |
|
|
ok two thing two. i still cant get it to work |
Here is a screenshot that points to where you can turn on debugging. |
|
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: |
Hi Gabriel, I don’t see which version of the JSON api in your list. Can you check? |
|
|
Event Espresso API Plugin Versión 2.0.2.p | Por Event Espresso, (Mike Nelson) | Visitar la web del plugin |
Hi Gabriel, It may help to update the version you have to be current (v.2.1 is the current version). |
|
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…
|
|
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.