Support Forums

Questions about surveying? How does this thing work? We're here to help!

The Forums are now closed, because much of the older info is out of date.

Check out our Knowledge Base, ask a support question: Support.SurveyGizmo.com or ask a sales question with our Sales Contact Form.

Current User: Guest

API – list of XML outputs

Topic Locked
UserPost

8:18
March 15, 2009


cmolnar

Member

posts 6

Post edited 3:19 – March 15, 2009 by cmolnar
Post edited 3:19 – March 15, 2009 by cmolnar
Post edited 3:21 – March 15, 2009 by cmolnar


I am looking for a document that explains the possible XML outputs, like what is found in a survey and what may not be found. For example, a list of question types and for each type what are the possible response XML messages.

The link below is an example of the output from an invalid survey ID:

https://api.sgizmo.com/?dk=15cbb17c3cefc84b105f3f3fd&uk=63dv00qdl*45&cmd=getSurvey&sid=1034632

NOTE: The link above does not seem to be working properly in this forum post. Please copy/paste the entire URL into a browser.

10:11
March 16, 2009


jonathan

Admin

posts 1129

Hi, Cmolnar!

We have detailed documentation about the API here:

http://www.surveygizmo.com/sur…..-intranet/

It does not include all of the possible XML outputs, though it will give you a very good idea of the format. For additional details, the wsdl describes some of the data that you get back and you can also do ObjectDetails('type') to get info back. The wsdl does describe queries/returns and ObjectDetails describes the type (ie survey), but i'm not sure if that's exactly what you're looking for.

You can also generate outputs from dummy surveys so you can log the information as you see it.

I hope this helps!

Jonathan Turk, SurveyGizmo Account Manager
Did this answer help? Let us know!
Want to be a SurveyGizmo Expert? Learn here!

2:15
May 14, 2009


Paul

Member

posts 35

Hi,


I also wouldn't mind a bundle of XML files showing all possible outputs for the different types of questions. How else could us developers possibly figure it out based on the current documentation? I don't see any WSDL.


This would be extremely useful for testing against.


Kind regards,


-Paul

3:04
May 14, 2009


jonathan

Admin

posts 1129

Hey, Paul!

Currently, we're an XML API, not a Soap API, so we don't have an active and restfull WSDL. (Though we plan on offering both as options in the next version of our API)

Our current API tutorial gives you all of the outputs for each function, you can use this to find out what all possible results will be.

Jonathan Turk, SurveyGizmo Account Manager
Did this answer help? Let us know!
Want to be a SurveyGizmo Expert? Learn here!

3:36
May 14, 2009


Paul

Member

posts 35

Thanks for the reply Jonathan,


Forgive me if I'm missing something obvious here – SurveyGizmo offers a myriad of question types but the API documentation only describes 3 types in the example for the getSurvey function (e.g. type=“CHECKBOX\TEXTBOX\INSTRUCTIONS). Therefore, in order for me to test all the different question types to see their XML output, I would have to create a survey that contains every question type and possible answer type. Thus, I was wondering if you have any sample XML files that contain everything.


Surely you have some kind of description doc (DTD) so that I can validate a properly formatted XML string. For example, how would a developer know orientation=“VERT” and not orientation=“VERTICAL”

9:45
May 14, 2009


Mario

Admin

Boulder, CO

posts 994

The API v1.0 is still considered BETA, and future improvements (stalled until version 2.0 of SurveyGizmo) have limited additional documentation. We should have some extra detailed documentation describing all the question types and their valid values, but as stated, much will change from the first set of improvements that were unreleased, and we didn't want to train customers on something that may be altered in a few months (v2 of the API will run alongside v1).

Thus, the documentation was geared towards making the requests rather than outlining the results, based on customer priorities. I believe Jonathan will be following up shortly with a bit of help regarding 'all questions' survey.

Mario Lurig
Sales Engineer – SurveyGizmo
How was my customer service? Provide feedback!

10:54
May 14, 2009


jonathan

Admin

posts 1129

Hey, Paul!

I've made a survey on your account called “All Questions Sampler”. You can use this to run API calls and verify the output for all of our different questions types.

I hope this helps!

Jonathan Turk, SurveyGizmo Account Manager
Did this answer help? Let us know!
Want to be a SurveyGizmo Expert? Learn here!

4:48
May 15, 2009


cmolnar

Member

posts 6

Jonathan,

Can you put that sampler survey in my Gizmo account?

Thanks,

Chris

6:06
May 15, 2009


Paul

Member

posts 35

Cheers for the help guys.

9:51
May 15, 2009


jonathan

Admin

posts 1129

Hey, Chris!

I've copied that survey over to your account, too! You're good to go.


Paul – thanks and you're welcome! =D

Jonathan Turk, SurveyGizmo Account Manager
Did this answer help? Let us know!
Want to be a SurveyGizmo Expert? Learn here!

5:27
August 30, 2009


cmolnar

Member

posts 6

Jonathan,

Thanks for the sample survey. I am just getting to use it now. I am trying to submit it to get sample responses to each question so I can test the API data transfer. 

However, When I submit page 1 of the sample survey, I get a “page not found” error on page 2. This is the url in my browser: http://pro22.sgizmo.com/Redirect. This results is a “partial” survey being submitted.

Can you suggest a fix so I can get a “completed” survey submitted?

Thanks,

Chris

5:44
August 31, 2009


jonathan

Admin

posts 1129

Hey, Chris!


Could you email me the exact API call you're making? I'll need to look into it, you can send the email to support@sgizmo.com and put ATTN to Jonathan in the subject.


Thanks!

Jonathan Turk, SurveyGizmo Account Manager
Did this answer help? Let us know!
Want to be a SurveyGizmo Expert? Learn here!

6:09
August 31, 2009


cmolnar

Member

posts 6

Jonathan,

Sure, I can send you the API calls. However, I'm really just asking what I need to do to the “All Questions Sampler” survey you put in my survey list to get it to submit as “completed”. I'mgetting  a “page not found” error on page 2.


Thanks,

Chris

6:22
August 31, 2009


jonathan

Admin

posts 1129

Oh!

I completely misunderstood! I thought you meant that you got that page when you tried submitting a response to the second page with the API. Reading over that I feel sort of dumb now ;-)

The reason your second page is doing that is because your second page a Browser Redirect action with no url!

I've edited your Browser Redirect action so that it is set with “Redirect by default” – “No” so it won't redirect. I hope this helps!

Jonathan Turk, SurveyGizmo Account Manager
Did this answer help? Let us know!
Want to be a SurveyGizmo Expert? Learn here!



The Forums are now closed, because much of the older info is out of date.

Check out our Knowledge Base, ask a support question: Support.SurveyGizmo.com or ask a sales question with our Sales Contact Form.