Add NationBuilder survey to collective texting
documentedAttach NationBuilder survey to a collective texting campaign
POST /collective_texting/{campaign_id}/nationbuilder_survey/add/Peer To Peer Textingno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl "https://api.callhub.io/v2/collective_texting/{{$campaign_id}}/nationbuilder_survey/add/" \
-X POST \
-H "Authorization: Token {{CALLHUB_API_KEY}}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"survey_id": "{{$survey_id}}", "responses": [{"question_id": "{{$question_id_1}}", "response": "{{$response_1}}"}, {"question_id": "{{$question_id_2}}", "response": "{{$response_2}}"}]}'