Loomio
Wed 9 Oct 2019 11:09PM

API Questions?

JZ Jaime Zinn Public Seen by 289

Howdy folks! I have a few questions about the Loomio API - if this isn't the right place, please let me know and I'll move it!

I'm a member of another group that uses Loomio to make decisions. Currently our leadership is manually text messaging members reminders to vote on proposals, and I was hoping to use Python, Twilio, and the Loomio API to automate this.

I've taken a look at the API documentation (https://help.loomio.org/en/dev_manual/using_the_api) and the rake routes (https://hackmd.loomio.io/s/HJmuX5IWl#), and see the proposals has a non_voters_count property. Is there any way I can access a list of members that have voted?

As a side note, I've also registered my python script (as described here 'https://github.com/loomio/loomio/pull/2980', 'https://github.com/loomio/loomio-oauth-sample'), but can only communicate with the API when I add my cookies to the pyoauth module.

Thank you!

H

Hugi Ásgeirsson Mon 27 Jan 2020 11:28PM

Hmmm, okay. Not sure how to do that off the bat. If you have any leads for what to do exactly I'd be grateful. Otherwise, we will have a crack at it with the guys who are taking over this weekend.

RG

Robert Guthrie Mon 27 Jan 2020 11:41PM

Now that I'm home, I've read the code, it already uses normal user auth + setting cookies. So I expect it will just work. Happy to help if it does not, but I really expect it will be fine.

Thank goodness!

H

Hugi Ásgeirsson Mon 27 Jan 2020 11:47PM

Ah, relief! That's great news. Thank you for your help, yet again. 🤗

RG

Robert Guthrie Mon 27 Jan 2020 11:52PM

It's a pleasure to see Loomio being used and support the users!
Great that removing the other auth stuff was the right move/had no cost, also cool to see an API client in the wild, I'll link to it from Loomio Help