Typeform / create-api-gem

A Ruby gem for using Typeform's Create APIs. https://developer.typeform.com/create/
Apache License 2.0
11 stars 13 forks source link

Writing requests #69

Open AGLIBRA opened 5 years ago

AGLIBRA commented 5 years ago

Hello, could you help me write write the complete correct requests for creating questions inside a form, creating forms inside specific worskspace and also accessing responses. I really tried finding out how, it took me a whole day as am a beginner in ror. Thank you advance.

sjacob-07 commented 4 years ago

Hey @AGLIBRA , were you able to figure this out? I am struggling with the same thing.

AGLIBRA commented 4 years ago

Which one from the above is your concern? Is it all of them or just one?

sjacob-07 commented 4 years ago

In the creation of questions, were you able to add a welcome screen?

AGLIBRA commented 4 years ago

For displaying a welcome screen it goes like this inside your controller if you are working in rails github : form = CreateFormRequest.execute(Form.new(title: 'HOVER 3'), token: 'your-token-goes_here').form form.welcome_screens << WelcomeScreen.new(title: 'Good and beautiful day') UpdateFormRequest.execute(form, token: 'your-token-goes_here')