# Passing back variables to Survey Gizmo

**URL:** <https://meta.discourse.org/t/passing-back-variables-to-survey-gizmo/52268>\
**Category:** Marketplace\
**Created:** [2016年十月31日 16:17 UTC](https://meta.discourse.org/t/passing-back-variables-to-survey-gizmo/52268 "2016-10-31T16:17:23Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nicholas\_Tolstoshev](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nicholas_tolstoshev/32/62714_2.png) [@Nicholas\_Tolstoshev](https://meta.discourse.org/u/Nicholas_Tolstoshev)\
**Post date:** [2016年十月31日 16:17 UTC](https://meta.discourse.org/t/passing-back-variables-to-survey-gizmo/52268/1 "2016-10-31T16:17:23Z")

</div>

I’m using Survey Gizmo for our survey platform, and I’m looking to pass back the userid and/or the email address from Discourse to Survey Gizmo, so that I can correlate data across our userbase. Survey Gizmo can take a variable at the end of the URL using the format ?variable=foo - has anyone gotten a plugin or code working to do such a pass back?

Edit: moved this to marketplace in case there’s any devs that would be interested in doing some contract work for this.

---

<div class="post-metadata">

**Author:** ![gdpelican](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gdpelican/32/81308_2.png) [@gdpelican](https://meta.discourse.org/u/gdpelican)\
**Post date:** [2016年十一月2日 15:04 UTC](https://meta.discourse.org/t/passing-back-variables-to-survey-gizmo/52268/2 "2016-11-02T15:04:36Z")

</div>

Have you tried out using a webhook for this?

> [@Configure webhooks that trigger on Discourse events to integrate with external services](https://meta.discourse.org/t/setting-up-webhooks/49045):
>
> A webhook is a way to notify external services about changes on the internet. It’s easier to setup, manage and develop than a Discourse plugin. Though, it does require you to program a little bit or understand its technical details. In this #howto, I’ll set up webhook to power a Github bot for referencing pull request brought in a forum. We’ll want to see a new comment on Github pull request when a new post has a link to it. It’s a very simple process: Publish a new post. A webhook event happ…

---

<div class="post-metadata">

**Author:** ![Nicholas\_Tolstoshev](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nicholas_tolstoshev/32/62714_2.png) [@Nicholas\_Tolstoshev](https://meta.discourse.org/u/Nicholas_Tolstoshev)\
**Post date:** [2016年十一月2日 15:26 UTC](https://meta.discourse.org/t/passing-back-variables-to-survey-gizmo/52268/3 "2016-11-02T15:26:55Z")

</div>

I haven’t and I’m not familiar with webhooks but I’ll do some reading and see if that would be a good solution. Thanks for advice!

---

<div class="post-metadata">

**Author:** ![Nicholas\_Tolstoshev](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nicholas_tolstoshev/32/62714_2.png) [@Nicholas\_Tolstoshev](https://meta.discourse.org/u/Nicholas_Tolstoshev)\
**Post date:** [2016年十一月18日 17:54 UTC](https://meta.discourse.org/t/passing-back-variables-to-survey-gizmo/52268/4 "2016-11-18T17:54:25Z")

</div>

Ok so SurveyGizmo has the ability to use webhooks:

> **[Webhook | SurveyGizmo Help](https://help.surveygizmo.com/help/survey-webhook)**
>
> Webhooks allow you to communicate with external webpages via an HTTP POST or GET standard, allowing you to send receive data, all behind the scenes.

and I’m able to get the current session info using:  
/session/current.json

The last problem is that SurveyGizmo will only take a query string but what the /session/current.json returns is in json format. Is there a way to get that info in a format that SurveyGizmo will accept?

---

<div class="post-metadata">

**Author:** ![Nicholas\_Tolstoshev](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nicholas_tolstoshev/32/62714_2.png) [@Nicholas\_Tolstoshev](https://meta.discourse.org/u/Nicholas_Tolstoshev)\
**Post date:** [2016年十一月22日 17:09 UTC](https://meta.discourse.org/t/passing-back-variables-to-survey-gizmo/52268/5 "2016-11-22T17:09:33Z")

</div>

I got the query string stuff sorted out but am running into issues getting /session/current.json run from another domain using CORS. I’ve poured over this discussion:  
[https://meta.discourse.org/t/how-to-get-current-user/12249](https://meta.discourse.org/t/how-to-get-current-user/12249)  
but don’t know what I’m doing wrong on the setup to be able to call current.json from another site.

---

<div class="post-metadata">

**Author:** ![nickmorin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nickmorin/32/84127_2.png) [@nickmorin](https://meta.discourse.org/u/nickmorin)\
**Post date:** [2017年四月19日 19:09 UTC](https://meta.discourse.org/t/passing-back-variables-to-survey-gizmo/52268/6 "2017-04-19T19:09:54Z")

</div>

bump to see if anyone has a solution!

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [2017年四月29日 19:10 UTC](https://meta.discourse.org/t/passing-back-variables-to-survey-gizmo/52268/7 "2017-04-29T19:10:07Z")

</div>

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.
