feature: adding surveys methods/endpoints support in ActionNetwork mo…#1647
feature: adding surveys methods/endpoints support in ActionNetwork mo…#1647shaunagm merged 6 commits intomove-coop:mainfrom
Conversation
…dule (https://actionnetwork.org/docs/v2/surveys) issue-addressed: 1592 - move-coop#1592
Coverage reportClick to see where and how coverage changed
This report was generated by python-coverage-comment-action |
||||||||||||||||||||||||
…ion-network/surveys
|
Dupe of #1646? |
I guess it is! Wow I completely missed this PR (guessing we worked on that in parallel - when I started to work on the changes there were no existing PR to add surveys). Meaning, we add the background_processing param to payload and it is usually being done by a query param in url (see other mrthods in the ActionNetwork connector) + according to the docs Surveys operations does not support background processing. @bmos Please let me know what do you think we should do? Should I delete the PR and we can have @matthewkrausse handle the changes? |
|
The documentation in the other pull request seems a little more complete, but otherwise I tend to lean towards yours? |
|
Can we add a commit to this PR copying the documentation for Matthew's PR to this one? Then I can merge this. |
Hi @shaunagm, after carefully reviewing the docs in ActionNetwork, I can see it says:
See here (under creating a new survey POST endpoint): https://actionnetwork.org/docs/v2/surveys So I think that Surveys in ActionNetwork are one thing but ones created using the API (what we are doing) are behaving differently as they mention above. |
|
I think you are confusing the request for documentation with inline code documentation? |
…ng unnecessary method create_survey_with_creator (we can just ust the create_survey function), updated inline doc string in create_survey function to show we can create a survey with specifying a creator
Got it, thanks for clarifying! Please let me know if anymore changes needed! |
| "title": "My Free Survey", | ||
| "origin_system": "FreeSurveys.com" | ||
| } | ||
| created_survey = an.create_survey(survey_payload) |
There was a problem hiding this comment.
might be worth including what created_survey looks like?
see created_tagging above
|
Sorry for the delay - thanks for adding this! |



feature: adding surveys methods/endpoints support in ActionNetwork module (https://actionnetwork.org/docs/v2/surveys)
issue-addressed: 1592 - #1592
What is this change?
Enable surveys support in the ActionNetwork module (https://actionnetwork.org/docs/v2/surveys).
Related to open issue #1592
Considerations for discussion
How to test the changes (if needed)