Rmonkey icon indicating copy to clipboard operation
Rmonkey copied to clipboard

Upgrade to v3 API

Open leeper opened this issue 8 years ago • 19 comments

API v2 is being discontinued. This will need to be rewritten using the v3 API (https://developer.surveymonkey.com/api/v3). I do not have time to do this, so the package has been archived on CRAN. Please consider this an open call for help in getting the package working with the new API.

leeper avatar Mar 27 '16 21:03 leeper

I forked the project and started work on the upgrade of to V3 here https://github.com/seanofahey/Rmonkey. All help is welcome

seanofahey avatar Dec 27 '16 18:12 seanofahey

If you would like, I can give you write permission here so that you can directly push updates. Interested?

leeper avatar Dec 28 '16 11:12 leeper

@seanofahey Would you be interested in becoming maintainer of this package?

leeper avatar Jan 09 '17 11:01 leeper

I certainly would like to help out. What's involved in being the maintainer?

In related news I have updated the getresponse function and built a surveyresponses wrapper that is working now.

On Jan 9, 2017, at 6:44 AM, Thomas J. Leeper [email protected] wrote:

@seanofahey Would you be interested in becoming maintainer of this package?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

seanofahey avatar Jan 10 '17 01:01 seanofahey

Basically, just keep doing what you're doing, but also send updates to CRAN (if you want). You would have write permission on the repository so you can make all changes here directly.

leeper avatar Jan 10 '17 10:01 leeper

I am able to get my data out of SurveyMonkey using @seanofahey's fork 👍 So it feels like this is almost there.

Results-wise, some to-do enhancements I see there are (a) assign legal variable names to the columns and store the question text in an attribute and (b) ideally, retain ordered factor info for questions where that's applicable.

User-friendliness-wise, the README should be updated to address the new function workflow for getting data out. Some README content can come from the RMonkey Demo.R file but I don't think the new retrieval code is there. This would be best be written by @seanofahey since I've only stumbled into something that works but don't understand the organization of the functions. But, if that doesn't happen, I may write up what works for me, so my colleagues can use this.

sfirke avatar Mar 30 '17 16:03 sfirke

@sfirke Thanks for the suggestions. I'll update the README content to sync it with what is available now and then get back to completing the remaining functions.

seanofahey avatar Mar 31 '17 02:03 seanofahey

@seanofahey I've made some developments on my fork of your fork, https://github.com/sfirke/Rmonkey.

Among other things:

  • renamed some functions slightly (taking the style in a tidyverse direction)
  • updated the README (and did it in .Rmd)
  • added a function to get an sm_survey from the survey_list by name, vs. by subsetting on index number
  • the resulting data.frame with the survey data has sequenced variable names in the style of what SurveyMonkey gives you in an SPSS export (names are q1, q2, q3_1, q3_2, etc.) and the question text is stored as a label attribute on each column.

I opened and closed some issues on my fork too if you want to see what I have planned. I haven't touched any survey creation or modification functionality, those are low priority for me.

Let me know if/how you'd like to collaborate; I wanted to move on this so I could use it today but don't want to duplicate any work going forward.

sfirke avatar Mar 31 '17 03:03 sfirke

@sfirke I updated the README file on my fork to more clearly explain the functions in use in the RMonkey Demo.R file. Let's sync tomorrow and we can plan the road ahead.

seanofahey avatar Mar 31 '17 04:03 seanofahey

Hey guys, thanks to @seanofahey for upgrading to v3.

Just wanted to say that for large survey downloads (N-sizes larger than 2,000) it's really slow due to the for/repeat loops. After benchmarking, I replaced the loops with purrr::map() and it's hundreds of times faster. 2,500 respondents can be downloaded, filtered, and merged in under 5 minutes using map(). Just wanted to let you guys know incase you're looking to make it faster. Best!

ClimateNexus avatar Aug 17 '17 17:08 ClimateNexus

@ClimateNexus I would love to see that - do you have it somewhere you could share?

sfirke avatar Aug 17 '17 20:08 sfirke

@climatenexus thank you! That was sorely needed. Given where we stand shall we bundle and release the best of what we have and then make a list of the next items to improve?

On Aug 17, 2017, at 2:49 PM, Sam Firke [email protected] wrote:

@ClimateNexus I would love to see that - do you have it somewhere you could share?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

seanofahey avatar Aug 18 '17 16:08 seanofahey

@ClimateNexus could you post your updates to this package in a GitHub repo?

sfirke avatar Jan 26 '18 15:01 sfirke

The PR for API v3 compatibility is pretty stale. I may need to work with SurveyMonkey in the near future and would like to have a clean interface. Are there cycles available from any maintainers to review a fresh PR in the coming weeks should this motivate me enough to contribute some bits? :grin:

davidski avatar Apr 24 '19 20:04 davidski

I'm no longer maintaining this package. If someone wants to work on it, I'm happy to grant edit rights.

leeper avatar Apr 24 '19 20:04 leeper

Thanks, @leeper! Let me see if this project materializes to give me the needed drive to dive into this. If so, I'll reach back out to you. Thanks for all the work on this!

davidski avatar Apr 24 '19 21:04 davidski

I’ve been using Qualtrics at work these days and so have not been as focused on Survey Monkey but am happy to share thoughts on potential improvements.

On Apr 24, 2019, at 5:47 PM, David F. Severski [email protected] wrote:

Thanks, @leeper! Let me see if this project materializes to give me the needed drive to dive into this. If so, I'll reach back out to you. Thanks for all the work on this!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

seanofahey avatar Apr 26 '19 01:04 seanofahey

To anyone watching this, I built on the 2016 Rmonkey code (v 0.3.3) and rewrote the putting-the-result-in-a-tidy-data.frame part. The new package is here: https://github.com/tntp/surveymonkey It's still a work in progress but should work for most cases. I'd be eager to hear from users/devs here if you have feedback, find bugs, or can contribute to improving the code.

If it appears satisfactory I could probably clean it up and send it toward CRAN.

sfirke avatar Oct 03 '19 20:10 sfirke

@sfirke I’m also happy to have you migrate that code to this repo, if you want. Will gladly give you edit rights if you’re interested.

leeper avatar Oct 04 '19 09:10 leeper