Loomio

API Issues

RG Robert Guthrie Public Seen by 90

Hi Shauna, I thought I'd start the thread to ask what issues you're experiencing with the API. Thanks for giving it a go. I'm keen to improve it based on feedback, and I love the metagov project.

RG

Robert Guthrie Fri 8 Apr 2022 3:53AM

Nice work. I changed the documentation examples to use json rather than form data last time I did a big update. It just looks so much simpler to me.

It's rails code, not Loomio code, that parses the json or form data and presents me with just a "params" object. So this aspect of parsing the incoming data has likely not changed recently.

The array[] thing is something php introduced, I think. You're supposed to use it like array[]=1&array[]=2&array[]=3 to send array=[1,2,3].

Anyway, I'm so sorry you had issues and I took a long time to respond. I am committed to improving the API with the feedback I get. So please let me know if there is something I can do. With a little time, I'm sure I can help.

RG

Robert Guthrie Fri 8 Apr 2022 3:54AM

Have you seen the new poll.results data format? Is that useful for you?

SG

Shauna Gordon-McKeon Thu 28 Apr 2022 4:53PM

Sorry, still focused on trying to get the existing feature working. I was able to get the notifications to work, but when they started working, the actual interface for voting disappeared. Do you have any idea what's going on? I didn't change anything else that I'm aware of.

https://www.loomio.org/d/GmUcr8ab/expense-submissions-gateway-/40

RG

Robert Guthrie Fri 29 Apr 2022 12:48AM

Could you send me a video of this? I've just tested it and it seems to work properly. We did have this bug reported 2 weeks ago, but I've since fixed it (or so I thought).

SG

Shauna Gordon-McKeon Fri 29 Apr 2022 1:03AM

Ack, sorry - pretty sure it was an issue on our end. I meant to update this thread but forgot. I'll let you know if the fix I found for it stops working!

RG

Robert Guthrie Fri 29 Apr 2022 1:04AM

Ok no problem.