formstack-api 0.0.1 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (23) hide show
  1. checksums.yaml +4 -4
  2. data/lib/formstack/api/version.rb +1 -1
  3. data/lib/formstack/api.rb +169 -1
  4. data/spec/fs-logo.png +0 -0
  5. data/spec/support/vcr.rb +34 -7
  6. data/spec/vcr/Formstack_API/_copy_form/adds_COPY_at_the_end_of_the_form_name.yml +434 -0
  7. data/spec/vcr/Formstack_API/_create_field/creates_a_field_with_embeded_code.yml +43 -0
  8. data/spec/vcr/Formstack_API/_create_field/creates_a_text_field.yml +43 -0
  9. data/spec/vcr/Formstack_API/_delete_submission/deletes_a_submission.yml +142 -0
  10. data/spec/vcr/Formstack_API/_edit_submission_data/edits_a_submission_succesfully.yml +373 -0
  11. data/spec/vcr/Formstack_API/_edit_submission_data/raises_an_exception_if_fields_are_non_numeric.yml +66 -0
  12. data/spec/vcr/Formstack_API/_edit_submission_data/raises_an_exception_when_data_array_and_ids_don_t_match.yml +66 -0
  13. data/spec/vcr/Formstack_API/_edit_submission_data/raises_an_exception_when_data_array_and_ids_don_t_match_reversed.yml +66 -0
  14. data/spec/vcr/Formstack_API/_edit_submission_data/raises_an_exception_with_a_bad_timestamp.yml +66 -0
  15. data/spec/vcr/Formstack_API/_form_submissions/gets_submissions_default.yml +388 -245
  16. data/spec/vcr/Formstack_API/_form_submissions/raises_an_error_if_page_number_is_not_working.yml +79 -0
  17. data/spec/vcr/Formstack_API/_form_submissions/returns_data_if_specified.yml +245 -0
  18. data/spec/vcr/Formstack_API/_form_submissions/returns_no_data_by_default.yml +65 -0
  19. data/spec/vcr/Formstack_API/_get_submission_details/gets_the_right_submission_from_the_right_form.yml +43 -0
  20. data/spec/vcr/Formstack_API/_submit_form/creates_a_submission_into_a_form.yml +46 -0
  21. data/spec/vcr/Formstack_API/_submit_form/uploads_an_image.yml +44 -0
  22. data/spec/wrapper_spec.rb +217 -20
  23. metadata +32 -2
@@ -647,4 +647,438 @@ http_interactions:
647
647
  Phone","hide_label":"0","description":"","name":"work_phone","type":"phone","options":"","default":"","required":"0","uniq":"0","hidden":"0","readonly":"0","colspan":"1","sort":"5","format":"US","text_size":"15"},{"id":"28564314","label":"Email","hide_label":"0","description":null,"name":"email","type":"email","options":"","default":"","required":"1","uniq":"0","hidden":"0","readonly":"0","colspan":"1","sort":"6","text_size":"50"},{"id":"28564315","label":"Comments","hide_label":"0","description":null,"name":"comments","type":"textarea","options":"","default":"","required":"0","uniq":"0","hidden":"0","readonly":"0","colspan":"1","sort":"7","rows":"10","cols":"50"}]}'
648
648
  http_version:
649
649
  recorded_at: Wed, 05 Nov 2014 15:13:31 GMT
650
+ - request:
651
+ method: get
652
+ uri: https://www.formstack.com/api/v2/form/<FORM_ID>
653
+ body:
654
+ encoding: US-ASCII
655
+ string: ''
656
+ headers:
657
+ Authorization:
658
+ - Bearer <ACCESS_TOKEN>
659
+ response:
660
+ status:
661
+ code: 200
662
+ message: OK
663
+ headers:
664
+ Server:
665
+ - nginx
666
+ Date:
667
+ - Mon, 17 Nov 2014 08:07:30 GMT
668
+ Content-Type:
669
+ - application/json
670
+ Transfer-Encoding:
671
+ - chunked
672
+ Connection:
673
+ - keep-alive
674
+ P3p:
675
+ - CP="CURa ADMa DEVa PSAo PSDo OUR BUS UNI PUR INT DEM STA PRE COM NAV OTC NOI
676
+ DSP COR"
677
+ Set-Cookie:
678
+ - FormstackAdmin=6jlvf96kfa7l3cc24ffc21gs76; path=/api/; secure; HttpOnly
679
+ Cache-Control:
680
+ - no-cache
681
+ X-Robots-Tag:
682
+ - noindex, nofollow
683
+ body:
684
+ encoding: UTF-8
685
+ string: '{"id":"<FORM_ID>","name":"Test Form","viewkey":"wV9lqDZbui","views":"0","created":"2014-11-10
686
+ 07:46:47","updated":"2014-11-13 07:26:39","deleted":"0","submissions":"0","submissions_unread":"0","submissions_today":0,"url":"https:\/\/leysinamericanschool.formstack.com\/forms\/untitled_form_1","data_url":"","summary_url":"","rss_url":"","encrypted":false,"thumbnail_url":"https:\/\/s3.amazonaws.com\/files.formstack.com\/admin\/","submit_button_title":null,"inactive":false,"timezone":"Europe\/Paris","permissions":"full","folder":"Test
687
+ Folder","javascript":"<script type=\"text\/javascript\" src=\"https:\/\/leysinamericanschool.formstack.com\/forms\/js.php?<FORM_ID>-wV9lqDZbui-v3\"><\/script><noscript><a
688
+ href=\"https:\/\/leysinamericanschool.formstack.com\/forms\/untitled_form_1\"
689
+ title=\"Online Form\">Online Form - Test Form<\/a><\/noscript><div style=\"text-align:right;
690
+ font-size:x-small;\"><a href=\"http:\/\/www.formstack.com?utm_source=jsembed&utm_medium=product&utm_campaign=product+branding&fa=h,<FORM_ID>\"
691
+ title=\"Online Form Maker\">Online Form Maker<\/a><\/div>","html":"<!DOCTYPE
692
+ html>\n<html lang=\"\">\n<head>\n<title>Test Form<\/title>\n<meta charset=\"utf-8\"
693
+ \/>\n<!--[if IE]>\n<link rel=\"stylesheet\" type=\"text\/css\" media=\"all\"
694
+ href=\"https:\/\/www.formstack.com\/forms\/css\/3\/ie.css?20140508\" \/>\n<![endif]-->\n<!--[if
695
+ IE 7]><link rel=\"stylesheet\" type=\"text\/css\" media=\"all\" href=\"https:\/\/www.formstack.com\/forms\/css\/3\/ie7.css\"
696
+ \/><![endif]-->\n<!--[if IE 6]><link rel=\"stylesheet\" type=\"text\/css\"
697
+ media=\"all\" href=\"https:\/\/www.formstack.com\/forms\/css\/3\/ie6fixes.css\"
698
+ \/><![endif]-->\n<link rel=\"stylesheet\" type=\"text\/css\" href=\"https:\/\/www.formstack.com\/forms\/css\/3\/reset.css?20140508\"
699
+ \/>\n<link rel=\"stylesheet\" type=\"text\/css\" href=\"https:\/\/www.formstack.com\/forms\/css\/3\/default.css?20141028\"
700
+ \/>\n<link rel=\"stylesheet\" type=\"text\/css\" href=\"https:\/\/www.formstack.com\/forms\/css\/3\/steel.css\"
701
+ \/>\n<style type=\"text\/css\">\n<\/style>\n<\/head>\n<body class=\"fsBody\"
702
+ id=\"fsLocal\">\n<form method=\"post\" novalidate enctype=\"multipart\/form-data\"
703
+ action=\"https:\/\/www.formstack.com\/forms\/index.php\" class=\"fsForm fsSingleColumn
704
+ fsMaxCol1\" id=\"fsForm<FORM_ID>\">\n<input type=\"hidden\" name=\"form\"
705
+ value=\"<FORM_ID>\" \/>\n<input type=\"hidden\" name=\"viewkey\" value=\"wV9lqDZbui\"
706
+ \/>\n<input type=\"hidden\" name=\"hidden_fields\" id=\"hidden_fields<FORM_ID>\"
707
+ value=\"\" \/>\n<input type=\"hidden\" name=\"_submit\" value=\"1\" \/>\n<input
708
+ type=\"hidden\" name=\"incomplete\" id=\"incomplete<FORM_ID>\" value=\"\"
709
+ \/>\n<input type=\"hidden\" name=\"style_version\" value=\"3\" \/>\n<div role=\"alert\"
710
+ id=\"requiredFieldsError\" style=\"display:none;\">Please fill in a valid
711
+ value for all required fields<\/div>\n<div role=\"alert\" id=\"invalidFormatError\"
712
+ style=\"display:none;\">Please ensure all values are in a proper format.<\/div>\n<div
713
+ role=\"alert\" id=\"resumeConfirm\" style=\"display:none;\">Are you sure you
714
+ want to leave this form and resume later?<\/div>\n<div role=\"alert\" id=\"fileTypeAlert\"
715
+ style=\"display:none;\">You must upload one of the following file types for
716
+ the selected field:<\/div>\n<div role=\"alert\" id=\"embedError\" style=\"display:none;\">There
717
+ was an error displaying the form. Please copy and paste the embed code again.<\/div>\n<div
718
+ role=\"alert\" id=\"applyDiscountButton\" style=\"display:none;\">Apply Discount<\/div>\n<div
719
+ role=\"alert\" id=\"dcmYouSaved\" style=\"display:none;\">You saved<\/div>\n<div
720
+ role=\"alert\" id=\"dcmWithCode\" style=\"display:none;\">with code<\/div>\n<div
721
+ role=\"alert\" id=\"submitButtonText\" style=\"display:none;\">Submit Form<\/div>\n<div
722
+ role=\"alert\" id=\"submittingText\" style=\"display:none;\">Submitting<\/div>\n<div
723
+ class=\"fsPage\" id=\"fsPage<FORM_ID>-1\">\n<div class=\"fsSection fs1Col\"
724
+ id=\"fsSection28632400\">\n<div class=\"fsSectionHeader\">\n<h2 class=\"fsSectionHeading\">Bug
725
+ Report<\/h2>\n<div class=\"fsSectionText\"><p>Please be as detailed as possible
726
+ to aid us in the troubleshooting process.<\/p><\/div>\n<\/div>\n<div id=\"fsRow<FORM_ID>-2\"
727
+ class=\"fsRow fsFieldRow fsLastRow\">\n<div class=\"fsRowBody fsCell fsFieldCell
728
+ fsFirst fsLast fsLabelVertical fsSpan100\" id=\"fsCell28632401\" lang=\"en\">\n<span
729
+ id=\"label28632401\" class=\"fsLabel fsRequiredLabel\">Your name<span class=\"fsRequiredMarker\">*<\/span><\/span>\n<div
730
+ class=\"fsSubFieldGroup\">\n<div class=\"fsSubField\">\n<input type=\"text\"
731
+ id=\"field28632401-first\" name=\"field28632401-first\" size=\"22\" value=\"\"
732
+ required class=\"fsField fsFieldName fsRequired\" aria-required=\"true\" \/>\n<label
733
+ class=\"fsSupporting fsRequiredLabel\" for=\"field28632401-first\">First Name<span
734
+ class=\"hidden\">*<\/span><\/label>\n<\/div>\n<div class=\"fsSubField\">\n<input
735
+ type=\"text\" id=\"field28632401-last\" name=\"field28632401-last\" size=\"22\"
736
+ value=\"\" required class=\"fsField fsFieldName fsRequired\" aria-required=\"true\"
737
+ \/>\n<label class=\"fsSupporting fsRequiredLabel\" for=\"field28632401-last\">Last
738
+ Name<span class=\"hidden\">*<\/span><\/label>\n<\/div>\n<\/div>\n<div class=\"clear\"><\/div>\n<\/div>\n<\/div>\n<div
739
+ id=\"fsRow<FORM_ID>-3\" class=\"fsRow fsFieldRow fsLastRow\">\n<div class=\"fsRowBody
740
+ fsCell fsFieldCell fsFirst fsLast fsLabelVertical fsSpan100\" id=\"fsCell28632402\"
741
+ lang=\"en\">\n<label id=\"label28632402\" class=\"fsLabel fsRequiredLabel\"
742
+ for=\"field28632402\">Email<span class=\"fsRequiredMarker\">*<\/span> <\/label>\n<input
743
+ type=\"email\" id=\"field28632402\" name=\"field28632402\" size=\"50\" required=\"required\"
744
+ value=\"\" class=\"fsField fsFormatEmail fsRequired\" aria-required=\"true\"
745
+ \/>\n<\/div>\n<\/div>\n<div id=\"fsRow<FORM_ID>-4\" class=\"fsRow fsFieldRow
746
+ fsLastRow\">\n<div class=\"fsRowBody fsCell fsFieldCell fsFirst fsLast fsLabelVertical
747
+ fsSpan100\" id=\"fsCell28632403\" lang=\"en\">\n<fieldset id=\"label28632403\">\n<legend
748
+ class=\"fsLabel fsRequiredLabel fsLabelVertical\"><span>Date and time you
749
+ first noticed this bug<span class=\"fsRequiredMarker\">*<\/span><\/span><\/legend>\n<div
750
+ class=\"fieldset-content\">\n<!-- Used to pull in url for jquery -->\n<span
751
+ style=\"display:none;\" id=\"fsCalendar28632403ImageUrl\">https:\/\/www.formstack.com\/forms\/images\/2\/calendar.png<\/span>\n<input
752
+ type=\"hidden\" id=\"field28632403Format\" name=\"field28632403Format\" value=\"MDY\"
753
+ \/>\n<div class=\"hidden\"><label for=\"field28632403M\">Month<\/label><\/div>\n<select
754
+ id=\"field28632403M\" name=\"field28632403M\" class=\"fsField fsRequired\"
755
+ aria-required=\"true\">\n<option value=\"\" selected=\"selected\"> <\/option>\n<option
756
+ value=\"Jan\">Jan<\/option>\n<option value=\"Feb\">Feb<\/option>\n<option
757
+ value=\"Mar\">Mar<\/option>\n<option value=\"Apr\">Apr<\/option>\n<option
758
+ value=\"May\">May<\/option>\n<option value=\"Jun\">Jun<\/option>\n<option
759
+ value=\"Jul\">Jul<\/option>\n<option value=\"Aug\">Aug<\/option>\n<option
760
+ value=\"Sep\">Sep<\/option>\n<option value=\"Oct\">Oct<\/option>\n<option
761
+ value=\"Nov\">Nov<\/option>\n<option value=\"Dec\">Dec<\/option>\n<\/select>\n<div
762
+ class=\"hidden\"><label for=\"field28632403D\">Day<\/label><\/div>\n<select
763
+ id=\"field28632403D\" name=\"field28632403D\" class=\"fsField fsRequired\"
764
+ aria-required=\"true\">\n<option value=\"\" selected=\"selected\"> <\/option>\n<option
765
+ value=\"01\">01<\/option>\n<option value=\"02\">02<\/option>\n<option value=\"03\">03<\/option>\n<option
766
+ value=\"04\">04<\/option>\n<option value=\"05\">05<\/option>\n<option value=\"06\">06<\/option>\n<option
767
+ value=\"07\">07<\/option>\n<option value=\"08\">08<\/option>\n<option value=\"09\">09<\/option>\n<option
768
+ value=\"10\">10<\/option>\n<option value=\"11\">11<\/option>\n<option value=\"12\">12<\/option>\n<option
769
+ value=\"13\">13<\/option>\n<option value=\"14\">14<\/option>\n<option value=\"15\">15<\/option>\n<option
770
+ value=\"16\">16<\/option>\n<option value=\"17\">17<\/option>\n<option value=\"18\">18<\/option>\n<option
771
+ value=\"19\">19<\/option>\n<option value=\"20\">20<\/option>\n<option value=\"21\">21<\/option>\n<option
772
+ value=\"22\">22<\/option>\n<option value=\"23\">23<\/option>\n<option value=\"24\">24<\/option>\n<option
773
+ value=\"25\">25<\/option>\n<option value=\"26\">26<\/option>\n<option value=\"27\">27<\/option>\n<option
774
+ value=\"28\">28<\/option>\n<option value=\"29\">29<\/option>\n<option value=\"30\">30<\/option>\n<option
775
+ value=\"31\">31<\/option>\n<\/select>\n<div class=\"hidden\"><label for=\"field28632403Y\">Year<\/label><\/div>\n<select
776
+ id=\"field28632403Y\" name=\"field28632403Y\" class=\"fsField fsRequired\"
777
+ aria-required=\"true\">\n<option value=\"\" selected=\"selected\"> <\/option>\n<option
778
+ value=\"2009\">2009<\/option>\n<option value=\"2010\">2010<\/option>\n<option
779
+ value=\"2011\">2011<\/option>\n<option value=\"2012\">2012<\/option>\n<option
780
+ value=\"2013\">2013<\/option>\n<option value=\"2014\">2014<\/option>\n<option
781
+ value=\"2015\">2015<\/option>\n<option value=\"2016\">2016<\/option>\n<option
782
+ value=\"2017\">2017<\/option>\n<option value=\"2018\">2018<\/option>\n<option
783
+ value=\"2019\">2019<\/option>\n<\/select>\n<input type=\"text\" id=\"fsCalendar28632403Link\"
784
+ class=\"fsCalendarPickerLink\" style=\"display:none;\" aria-required=\"true\"
785
+ \/>\n<div id=\"fsCalendar28632403\" class=\"fsCalendar\" style=\" position:absolute\"><\/div>\n<span
786
+ class=\"always-ltr\">\n<div class=\"hidden\"><label for=\"field28632403H\">Hour<\/label><\/div>\n<select
787
+ id=\"field28632403H\" name=\"field28632403H\" class=\"fsField fsRequired\"
788
+ aria-required=\"true\">\n<option value=\"\" selected=\"selected\"> <\/option>\n<option
789
+ value=\"01\">01<\/option>\n<option value=\"02\">02<\/option>\n<option value=\"03\">03<\/option>\n<option
790
+ value=\"04\">04<\/option>\n<option value=\"05\">05<\/option>\n<option value=\"06\">06<\/option>\n<option
791
+ value=\"07\">07<\/option>\n<option value=\"08\">08<\/option>\n<option value=\"09\">09<\/option>\n<option
792
+ value=\"10\">10<\/option>\n<option value=\"11\">11<\/option>\n<option value=\"12\">12<\/option>\n<\/select>\n<div
793
+ class=\"hidden\"><label for=\"field28632403I\">Minute<\/label><\/div>\n<span>:<\/span>
794
+ <select id=\"field28632403I\" name=\"field28632403I\" class=\"fsField fsRequired\"
795
+ aria-required=\"true\">\n<option value=\"\" selected=\"selected\"> <\/option>\n<option
796
+ value=\"00\">00<\/option>\n<option value=\"01\">01<\/option>\n<option value=\"02\">02<\/option>\n<option
797
+ value=\"03\">03<\/option>\n<option value=\"04\">04<\/option>\n<option value=\"05\">05<\/option>\n<option
798
+ value=\"06\">06<\/option>\n<option value=\"07\">07<\/option>\n<option value=\"08\">08<\/option>\n<option
799
+ value=\"09\">09<\/option>\n<option value=\"10\">10<\/option>\n<option value=\"11\">11<\/option>\n<option
800
+ value=\"12\">12<\/option>\n<option value=\"13\">13<\/option>\n<option value=\"14\">14<\/option>\n<option
801
+ value=\"15\">15<\/option>\n<option value=\"16\">16<\/option>\n<option value=\"17\">17<\/option>\n<option
802
+ value=\"18\">18<\/option>\n<option value=\"19\">19<\/option>\n<option value=\"20\">20<\/option>\n<option
803
+ value=\"21\">21<\/option>\n<option value=\"22\">22<\/option>\n<option value=\"23\">23<\/option>\n<option
804
+ value=\"24\">24<\/option>\n<option value=\"25\">25<\/option>\n<option value=\"26\">26<\/option>\n<option
805
+ value=\"27\">27<\/option>\n<option value=\"28\">28<\/option>\n<option value=\"29\">29<\/option>\n<option
806
+ value=\"30\">30<\/option>\n<option value=\"31\">31<\/option>\n<option value=\"32\">32<\/option>\n<option
807
+ value=\"33\">33<\/option>\n<option value=\"34\">34<\/option>\n<option value=\"35\">35<\/option>\n<option
808
+ value=\"36\">36<\/option>\n<option value=\"37\">37<\/option>\n<option value=\"38\">38<\/option>\n<option
809
+ value=\"39\">39<\/option>\n<option value=\"40\">40<\/option>\n<option value=\"41\">41<\/option>\n<option
810
+ value=\"42\">42<\/option>\n<option value=\"43\">43<\/option>\n<option value=\"44\">44<\/option>\n<option
811
+ value=\"45\">45<\/option>\n<option value=\"46\">46<\/option>\n<option value=\"47\">47<\/option>\n<option
812
+ value=\"48\">48<\/option>\n<option value=\"49\">49<\/option>\n<option value=\"50\">50<\/option>\n<option
813
+ value=\"51\">51<\/option>\n<option value=\"52\">52<\/option>\n<option value=\"53\">53<\/option>\n<option
814
+ value=\"54\">54<\/option>\n<option value=\"55\">55<\/option>\n<option value=\"56\">56<\/option>\n<option
815
+ value=\"57\">57<\/option>\n<option value=\"58\">58<\/option>\n<option value=\"59\">59<\/option>\n<\/select>\n&nbsp;\n<div
816
+ class=\"hidden\"><label for=\"field28632403A\">AM\/PM<\/label><\/div>\n<select
817
+ id=\"field28632403A\" name=\"field28632403A\" class=\"fsField fsRequired\"
818
+ aria-required=\"true\">\n<option value=\"\" selected=\"selected\"> <\/option>\n<option
819
+ value=\"AM\">AM<\/option>\n<option value=\"PM\">PM<\/option>\n<\/select>\n<div
820
+ class=\"fs-clear\">\n<\/div>\n<\/span>\n<\/div><\/fieldset>\n<\/div>\n<\/div>\n<div
821
+ id=\"fsRow<FORM_ID>-5\" class=\"fsRow fsFieldRow fsLastRow\">\n<div class=\"fsRowBody
822
+ fsCell fsFieldCell fsFirst fsLast fsLabelVertical fsSpan100\" id=\"fsCell28632404\"
823
+ lang=\"en\">\n<label id=\"label28632404\" class=\"fsLabel fsRequiredLabel\"
824
+ for=\"field28632404\">Detailed explanation of bug<span class=\"fsRequiredMarker\">*<\/span> <\/label>\n<textarea
825
+ id=\"field28632404\" name=\"field28632404\" rows=\"10\" cols=\"50\" required
826
+ class=\"fsField fsRequired\" aria-required=\"true\"><\/textarea>\n<\/div>\n<\/div>\n<div
827
+ id=\"fsRow<FORM_ID>-6\" class=\"fsRow fsFieldRow fsLastRow\">\n<div class=\"fsRowBody
828
+ fsCell fsFieldCell fsFirst fsLast fsLabelVertical fsSpan100\" id=\"fsCell28632405\"
829
+ lang=\"en\">\n<label id=\"label28632405\" class=\"fsLabel\" for=\"field28632405\">Upload
830
+ a screen capture (optional) <\/label>\n<input
831
+ type=\"file\" id=\"field28632405\" name=\"field28632405\" size=\"50\" class=\"fsField
832
+ fsUpload uploadTypes-jpg,jpeg,gif,png,bmp,tif,psd,pdf,doc,docx,xls,txt,mp3,mp4,aac,wav,au,wmv,avi,mpg,mpeg,zip,gz,rar,z,tgz,tar,sitx\"
833
+ \/>\n<div class=\"showMobile\">File uploads may not work on some mobile devices.<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div
834
+ id=\"fsSubmit<FORM_ID>\" class=\"fsSubmit fsPagination\">\n<button type=\"button\"
835
+ id=\"fsPreviousButton<FORM_ID>\" class=\"fsPreviousButton\" value=\"Previous
836
+ Page\" style=\"display:none;\"><span class=\"fsFull\">Previous<\/span><span
837
+ class=\"fsSlim\">&larr;<\/span><\/button>\n<button type=\"button\" id=\"fsNextButton<FORM_ID>\"
838
+ class=\"fsNextButton\" value=\"Next Page\" style=\"display:none;\"><span class=\"fsFull\">Next<\/span><span
839
+ class=\"fsSlim\">&rarr;<\/span><\/button>\n<input id=\"fsSubmitButton<FORM_ID>\"\nclass=\"fsSubmitButton\"\nstyle=\"display:
840
+ block;\"\ntype=\"submit\"\nvalue=\"Submit Form\" \/>\n<div class=\"clear\"><\/div>\n<\/div>\n<script
841
+ type=\"text\/javascript\" src=\"https:\/\/www.formstack.com\/forms\/js\/3\/jquery.min.js\"><\/script>\n<link
842
+ href=\"https:\/\/www.formstack.com\/forms\/css\/3\/jquery-ui.css?20140508\"
843
+ rel=\"stylesheet\" type=\"text\/css\" \/>\n<script type=\"text\/javascript\"
844
+ src=\"https:\/\/www.formstack.com\/forms\/js\/3\/jquery-ui.min.js?20140508\"><\/script>\n<script
845
+ type=\"text\/javascript\" src=\"https:\/\/www.formstack.com\/forms\/js\/3\/scripts.js?20141031\"><\/script>\n<script
846
+ type=\"text\/javascript\" src=\"https:\/\/www.formstack.com\/forms\/js\/3\/analytics.js?20140409\"><\/script>\n<script
847
+ type=\"text\/javascript\">\nif(window.addEventListener) {\nwindow.addEventListener(''load'',
848
+ loadFormstack, false);\n} else if(window.attachEvent) {\nwindow.attachEvent(''onload'',
849
+ loadFormstack);\n} else {\nloadFormstack();\n}\nfunction loadFormstack() {\nvar
850
+ form<FORM_ID> = new Formstack.Form(<FORM_ID>, ''https:\/\/www.formstack.com\/forms\/'');\nform<FORM_ID>.logicFields
851
+ = [];\nform<FORM_ID>.calcFields = [];\nform<FORM_ID>.init();\nform<FORM_ID>.plugins.analytics
852
+ = new Formstack.Analytics('''', <FORM_ID>, form<FORM_ID>);\nform<FORM_ID>.plugins.analytics.trackTouch();\nform<FORM_ID>.plugins.analytics.trackBottleneck();\nwindow.form<FORM_ID>
853
+ = form<FORM_ID>;\n};\n<\/script>\n<\/form>\n<img src=\"https:\/\/www.formstack.com\/forms\/count.php?<FORM_ID>\"
854
+ alt=\"Form View Counter\" width=\"1\" height=\"1\" border=\"0\" \/>\n<p style=\"display:block;width:128px;height:48px;margin:18px
855
+ auto;\"><a href=\"http:\/\/www.formstack.com\/?fa=f,<FORM_ID>\" target=\"_blank\" style=\"display:block;width:128px;height:48px;\"
856
+ title=\"Powered by Formstack Online Forms\"><img src=\"https:\/\/www.formstack.com\/forms\/images\/2\/poweredByFormstack.png\"
857
+ alt=\"Formstack Online Forms\" style=\"border:0; vertical-align: text-top;\"
858
+ \/><span style=\"display:none;\">Formstack Online Forms<\/span><\/a><\/p>\n<\/body>\n<\/html>","fields":[{"id":"28632400","label":"","hide_label":"0","description":null,"name":"","type":"section","options":"","default":"","required":"0","uniq":"0","hidden":"0","readonly":"0","colspan":"1","sort":"1","label_position":"default","num_columns":"0","section_break":"0","section_heading":"Bug
859
+ Report","section_text":"<p>Please be as detailed as possible to aid us in
860
+ the troubleshooting process.<\/p>"},{"id":"28632401","label":"Your name","hide_label":"0","description":"","name":"your_name","type":"name","options":"","default":"","required":"1","uniq":"0","hidden":"0","readonly":"0","colspan":"1","sort":"2","show_initial":"","show_middle":"","show_prefix":"","show_suffix":"","text_size":"22"},{"id":"28632402","label":"Email","hide_label":"0","description":"","name":"email","type":"email","options":"","default":"","required":"1","uniq":"0","hidden":"0","readonly":"0","colspan":"1","sort":"3","text_size":"50"},{"id":"28632403","label":"Date
861
+ and time you first noticed this bug","hide_label":"0","description":"","name":"date_and_time_you_first_noticed_this_bug","type":"datetime","options":"","default":null,"required":"1","uniq":"0","hidden":"0","readonly":"0","colspan":"1","sort":"4","date_format":"M
862
+ d, Y","time_format":"h:i A","year_minus":"5","year_plus":"5"},{"id":"28632404","label":"Detailed
863
+ explanation of bug","hide_label":"0","description":"","name":"detailed_explanation_of_bug","type":"textarea","options":"","default":"","required":"1","uniq":"0","hidden":"0","readonly":"0","colspan":"1","sort":"5","rows":"10","cols":"50"},{"id":"28632405","label":"Upload
864
+ a screen capture (optional)","hide_label":"0","description":"","name":"upload_a_screen_capture_optional","type":"file","options":"","default":"","required":"0","uniq":"0","hidden":"0","readonly":"0","colspan":"1","sort":"6","text_size":"50","file_types":"jpg,jpeg,gif,png,bmp,tif,psd,pdf,doc,docx,xls,txt,mp3,mp4,aac,wav,au,wmv,avi,mpg,mpeg,zip,gz,rar,z,tgz,tar,sitx"}]}'
865
+ http_version:
866
+ recorded_at: Mon, 17 Nov 2014 08:07:30 GMT
867
+ - request:
868
+ method: post
869
+ uri: https://www.formstack.com/api/v2/form/<FORM_ID>/copy
870
+ body:
871
+ encoding: UTF-8
872
+ string: ''
873
+ headers:
874
+ Authorization:
875
+ - Bearer <ACCESS_TOKEN>
876
+ response:
877
+ status:
878
+ code: 200
879
+ message: OK
880
+ headers:
881
+ Server:
882
+ - nginx
883
+ Date:
884
+ - Mon, 17 Nov 2014 08:07:30 GMT
885
+ Content-Type:
886
+ - application/json
887
+ Transfer-Encoding:
888
+ - chunked
889
+ Connection:
890
+ - keep-alive
891
+ P3p:
892
+ - CP="CURa ADMa DEVa PSAo PSDo OUR BUS UNI PUR INT DEM STA PRE COM NAV OTC NOI
893
+ DSP COR"
894
+ Set-Cookie:
895
+ - FormstackAdmin=lckcqs8li48e4d3nkvl8q3m3j0; path=/api/; secure; HttpOnly
896
+ Cache-Control:
897
+ - no-cache
898
+ X-Robots-Tag:
899
+ - noindex, nofollow
900
+ body:
901
+ encoding: UTF-8
902
+ string: '{"id":"1875865","name":"Test Form - COPY","viewkey":"wV9lqDZbui","views":"0","created":"2014-11-17
903
+ 03:07:30","updated":"2014-11-17 03:07:30","deleted":"0","submissions":"0","submissions_unread":"0","submissions_today":0,"url":"https:\/\/leysinamericanschool.formstack.com\/forms\/untitled_form_1_copy","data_url":"","summary_url":"","rss_url":"","encrypted":false,"thumbnail_url":"https:\/\/s3.amazonaws.com\/files.formstack.com\/admin\/","submit_button_title":null,"inactive":false,"timezone":"Europe\/Paris","permissions":"full","folder":"Test
904
+ Folder","javascript":"<script type=\"text\/javascript\" src=\"https:\/\/leysinamericanschool.formstack.com\/forms\/js.php?1875865-wV9lqDZbui-v3\"><\/script><noscript><a
905
+ href=\"https:\/\/leysinamericanschool.formstack.com\/forms\/untitled_form_1_copy\"
906
+ title=\"Online Form\">Online Form - Test Form - COPY<\/a><\/noscript><div
907
+ style=\"text-align:right; font-size:x-small;\"><a href=\"http:\/\/www.formstack.com?utm_source=jsembed&utm_medium=product&utm_campaign=product+branding&fa=h,1875865\"
908
+ title=\"HTML Form Builder\">HTML Form Builder<\/a><\/div>","html":"<!DOCTYPE
909
+ html>\n<html lang=\"\">\n<head>\n<title>Test Form - COPY<\/title>\n<meta charset=\"utf-8\"
910
+ \/>\n<!--[if IE]>\n<link rel=\"stylesheet\" type=\"text\/css\" media=\"all\"
911
+ href=\"https:\/\/www.formstack.com\/forms\/css\/3\/ie.css?20140508\" \/>\n<![endif]-->\n<!--[if
912
+ IE 7]><link rel=\"stylesheet\" type=\"text\/css\" media=\"all\" href=\"https:\/\/www.formstack.com\/forms\/css\/3\/ie7.css\"
913
+ \/><![endif]-->\n<!--[if IE 6]><link rel=\"stylesheet\" type=\"text\/css\"
914
+ media=\"all\" href=\"https:\/\/www.formstack.com\/forms\/css\/3\/ie6fixes.css\"
915
+ \/><![endif]-->\n<link rel=\"stylesheet\" type=\"text\/css\" href=\"https:\/\/www.formstack.com\/forms\/css\/3\/reset.css?20140508\"
916
+ \/>\n<link rel=\"stylesheet\" type=\"text\/css\" href=\"https:\/\/www.formstack.com\/forms\/css\/3\/default.css?20141028\"
917
+ \/>\n<link rel=\"stylesheet\" type=\"text\/css\" href=\"https:\/\/www.formstack.com\/forms\/css\/3\/steel.css\"
918
+ \/>\n<style type=\"text\/css\">\n<\/style>\n<\/head>\n<body class=\"fsBody\"
919
+ id=\"fsLocal\">\n<form method=\"post\" novalidate enctype=\"multipart\/form-data\"
920
+ action=\"https:\/\/www.formstack.com\/forms\/index.php\" class=\"fsForm fsSingleColumn
921
+ fsMaxCol1\" id=\"fsForm1875865\">\n<input type=\"hidden\" name=\"form\" value=\"1875865\"
922
+ \/>\n<input type=\"hidden\" name=\"viewkey\" value=\"wV9lqDZbui\" \/>\n<input
923
+ type=\"hidden\" name=\"hidden_fields\" id=\"hidden_fields1875865\" value=\"\"
924
+ \/>\n<input type=\"hidden\" name=\"_submit\" value=\"1\" \/>\n<input type=\"hidden\"
925
+ name=\"incomplete\" id=\"incomplete1875865\" value=\"\" \/>\n<input type=\"hidden\"
926
+ name=\"style_version\" value=\"3\" \/>\n<div role=\"alert\" id=\"requiredFieldsError\"
927
+ style=\"display:none;\">Please fill in a valid value for all required fields<\/div>\n<div
928
+ role=\"alert\" id=\"invalidFormatError\" style=\"display:none;\">Please ensure
929
+ all values are in a proper format.<\/div>\n<div role=\"alert\" id=\"resumeConfirm\"
930
+ style=\"display:none;\">Are you sure you want to leave this form and resume
931
+ later?<\/div>\n<div role=\"alert\" id=\"fileTypeAlert\" style=\"display:none;\">You
932
+ must upload one of the following file types for the selected field:<\/div>\n<div
933
+ role=\"alert\" id=\"embedError\" style=\"display:none;\">There was an error
934
+ displaying the form. Please copy and paste the embed code again.<\/div>\n<div
935
+ role=\"alert\" id=\"applyDiscountButton\" style=\"display:none;\">Apply Discount<\/div>\n<div
936
+ role=\"alert\" id=\"dcmYouSaved\" style=\"display:none;\">You saved<\/div>\n<div
937
+ role=\"alert\" id=\"dcmWithCode\" style=\"display:none;\">with code<\/div>\n<div
938
+ role=\"alert\" id=\"submitButtonText\" style=\"display:none;\">Submit Form<\/div>\n<div
939
+ role=\"alert\" id=\"submittingText\" style=\"display:none;\">Submitting<\/div>\n<div
940
+ class=\"fsPage\" id=\"fsPage1875865-1\">\n<div class=\"fsSection fs1Col\"
941
+ id=\"fsSection28760453\">\n<div class=\"fsSectionHeader\">\n<h2 class=\"fsSectionHeading\">Bug
942
+ Report<\/h2>\n<div class=\"fsSectionText\"><p>Please be as detailed as possible
943
+ to aid us in the troubleshooting process.<\/p><\/div>\n<\/div>\n<div id=\"fsRow1875865-2\"
944
+ class=\"fsRow fsFieldRow fsLastRow\">\n<div class=\"fsRowBody fsCell fsFieldCell
945
+ fsFirst fsLast fsLabelVertical fsSpan100\" id=\"fsCell28760454\" lang=\"en\">\n<span
946
+ id=\"label28760454\" class=\"fsLabel fsRequiredLabel\">Your name<span class=\"fsRequiredMarker\">*<\/span><\/span>\n<div
947
+ class=\"fsSubFieldGroup\">\n<div class=\"fsSubField\">\n<input type=\"text\"
948
+ id=\"field28760454-first\" name=\"field28760454-first\" size=\"22\" value=\"\"
949
+ required class=\"fsField fsFieldName fsRequired\" aria-required=\"true\" \/>\n<label
950
+ class=\"fsSupporting fsRequiredLabel\" for=\"field28760454-first\">First Name<span
951
+ class=\"hidden\">*<\/span><\/label>\n<\/div>\n<div class=\"fsSubField\">\n<input
952
+ type=\"text\" id=\"field28760454-last\" name=\"field28760454-last\" size=\"22\"
953
+ value=\"\" required class=\"fsField fsFieldName fsRequired\" aria-required=\"true\"
954
+ \/>\n<label class=\"fsSupporting fsRequiredLabel\" for=\"field28760454-last\">Last
955
+ Name<span class=\"hidden\">*<\/span><\/label>\n<\/div>\n<\/div>\n<div class=\"clear\"><\/div>\n<\/div>\n<\/div>\n<div
956
+ id=\"fsRow1875865-3\" class=\"fsRow fsFieldRow fsLastRow\">\n<div class=\"fsRowBody
957
+ fsCell fsFieldCell fsFirst fsLast fsLabelVertical fsSpan100\" id=\"fsCell28760455\"
958
+ lang=\"en\">\n<label id=\"label28760455\" class=\"fsLabel fsRequiredLabel\"
959
+ for=\"field28760455\">Email<span class=\"fsRequiredMarker\">*<\/span> <\/label>\n<input
960
+ type=\"email\" id=\"field28760455\" name=\"field28760455\" size=\"50\" required=\"required\"
961
+ value=\"\" class=\"fsField fsFormatEmail fsRequired\" aria-required=\"true\"
962
+ \/>\n<\/div>\n<\/div>\n<div id=\"fsRow1875865-4\" class=\"fsRow fsFieldRow
963
+ fsLastRow\">\n<div class=\"fsRowBody fsCell fsFieldCell fsFirst fsLast fsLabelVertical
964
+ fsSpan100\" id=\"fsCell28760456\" lang=\"en\">\n<fieldset id=\"label28760456\">\n<legend
965
+ class=\"fsLabel fsRequiredLabel fsLabelVertical\"><span>Date and time you
966
+ first noticed this bug<span class=\"fsRequiredMarker\">*<\/span><\/span><\/legend>\n<div
967
+ class=\"fieldset-content\">\n<!-- Used to pull in url for jquery -->\n<span
968
+ style=\"display:none;\" id=\"fsCalendar28760456ImageUrl\">https:\/\/www.formstack.com\/forms\/images\/2\/calendar.png<\/span>\n<input
969
+ type=\"hidden\" id=\"field28760456Format\" name=\"field28760456Format\" value=\"MDY\"
970
+ \/>\n<div class=\"hidden\"><label for=\"field28760456M\">Month<\/label><\/div>\n<select
971
+ id=\"field28760456M\" name=\"field28760456M\" class=\"fsField fsRequired\"
972
+ aria-required=\"true\">\n<option value=\"\" selected=\"selected\"> <\/option>\n<option
973
+ value=\"Jan\">Jan<\/option>\n<option value=\"Feb\">Feb<\/option>\n<option
974
+ value=\"Mar\">Mar<\/option>\n<option value=\"Apr\">Apr<\/option>\n<option
975
+ value=\"May\">May<\/option>\n<option value=\"Jun\">Jun<\/option>\n<option
976
+ value=\"Jul\">Jul<\/option>\n<option value=\"Aug\">Aug<\/option>\n<option
977
+ value=\"Sep\">Sep<\/option>\n<option value=\"Oct\">Oct<\/option>\n<option
978
+ value=\"Nov\">Nov<\/option>\n<option value=\"Dec\">Dec<\/option>\n<\/select>\n<div
979
+ class=\"hidden\"><label for=\"field28760456D\">Day<\/label><\/div>\n<select
980
+ id=\"field28760456D\" name=\"field28760456D\" class=\"fsField fsRequired\"
981
+ aria-required=\"true\">\n<option value=\"\" selected=\"selected\"> <\/option>\n<option
982
+ value=\"01\">01<\/option>\n<option value=\"02\">02<\/option>\n<option value=\"03\">03<\/option>\n<option
983
+ value=\"04\">04<\/option>\n<option value=\"05\">05<\/option>\n<option value=\"06\">06<\/option>\n<option
984
+ value=\"07\">07<\/option>\n<option value=\"08\">08<\/option>\n<option value=\"09\">09<\/option>\n<option
985
+ value=\"10\">10<\/option>\n<option value=\"11\">11<\/option>\n<option value=\"12\">12<\/option>\n<option
986
+ value=\"13\">13<\/option>\n<option value=\"14\">14<\/option>\n<option value=\"15\">15<\/option>\n<option
987
+ value=\"16\">16<\/option>\n<option value=\"17\">17<\/option>\n<option value=\"18\">18<\/option>\n<option
988
+ value=\"19\">19<\/option>\n<option value=\"20\">20<\/option>\n<option value=\"21\">21<\/option>\n<option
989
+ value=\"22\">22<\/option>\n<option value=\"23\">23<\/option>\n<option value=\"24\">24<\/option>\n<option
990
+ value=\"25\">25<\/option>\n<option value=\"26\">26<\/option>\n<option value=\"27\">27<\/option>\n<option
991
+ value=\"28\">28<\/option>\n<option value=\"29\">29<\/option>\n<option value=\"30\">30<\/option>\n<option
992
+ value=\"31\">31<\/option>\n<\/select>\n<div class=\"hidden\"><label for=\"field28760456Y\">Year<\/label><\/div>\n<select
993
+ id=\"field28760456Y\" name=\"field28760456Y\" class=\"fsField fsRequired\"
994
+ aria-required=\"true\">\n<option value=\"\" selected=\"selected\"> <\/option>\n<option
995
+ value=\"2009\">2009<\/option>\n<option value=\"2010\">2010<\/option>\n<option
996
+ value=\"2011\">2011<\/option>\n<option value=\"2012\">2012<\/option>\n<option
997
+ value=\"2013\">2013<\/option>\n<option value=\"2014\">2014<\/option>\n<option
998
+ value=\"2015\">2015<\/option>\n<option value=\"2016\">2016<\/option>\n<option
999
+ value=\"2017\">2017<\/option>\n<option value=\"2018\">2018<\/option>\n<option
1000
+ value=\"2019\">2019<\/option>\n<\/select>\n<input type=\"text\" id=\"fsCalendar28760456Link\"
1001
+ class=\"fsCalendarPickerLink\" style=\"display:none;\" aria-required=\"true\"
1002
+ \/>\n<div id=\"fsCalendar28760456\" class=\"fsCalendar\" style=\" position:absolute\"><\/div>\n<span
1003
+ class=\"always-ltr\">\n<div class=\"hidden\"><label for=\"field28760456H\">Hour<\/label><\/div>\n<select
1004
+ id=\"field28760456H\" name=\"field28760456H\" class=\"fsField fsRequired\"
1005
+ aria-required=\"true\">\n<option value=\"\" selected=\"selected\"> <\/option>\n<option
1006
+ value=\"01\">01<\/option>\n<option value=\"02\">02<\/option>\n<option value=\"03\">03<\/option>\n<option
1007
+ value=\"04\">04<\/option>\n<option value=\"05\">05<\/option>\n<option value=\"06\">06<\/option>\n<option
1008
+ value=\"07\">07<\/option>\n<option value=\"08\">08<\/option>\n<option value=\"09\">09<\/option>\n<option
1009
+ value=\"10\">10<\/option>\n<option value=\"11\">11<\/option>\n<option value=\"12\">12<\/option>\n<\/select>\n<div
1010
+ class=\"hidden\"><label for=\"field28760456I\">Minute<\/label><\/div>\n<span>:<\/span>
1011
+ <select id=\"field28760456I\" name=\"field28760456I\" class=\"fsField fsRequired\"
1012
+ aria-required=\"true\">\n<option value=\"\" selected=\"selected\"> <\/option>\n<option
1013
+ value=\"00\">00<\/option>\n<option value=\"01\">01<\/option>\n<option value=\"02\">02<\/option>\n<option
1014
+ value=\"03\">03<\/option>\n<option value=\"04\">04<\/option>\n<option value=\"05\">05<\/option>\n<option
1015
+ value=\"06\">06<\/option>\n<option value=\"07\">07<\/option>\n<option value=\"08\">08<\/option>\n<option
1016
+ value=\"09\">09<\/option>\n<option value=\"10\">10<\/option>\n<option value=\"11\">11<\/option>\n<option
1017
+ value=\"12\">12<\/option>\n<option value=\"13\">13<\/option>\n<option value=\"14\">14<\/option>\n<option
1018
+ value=\"15\">15<\/option>\n<option value=\"16\">16<\/option>\n<option value=\"17\">17<\/option>\n<option
1019
+ value=\"18\">18<\/option>\n<option value=\"19\">19<\/option>\n<option value=\"20\">20<\/option>\n<option
1020
+ value=\"21\">21<\/option>\n<option value=\"22\">22<\/option>\n<option value=\"23\">23<\/option>\n<option
1021
+ value=\"24\">24<\/option>\n<option value=\"25\">25<\/option>\n<option value=\"26\">26<\/option>\n<option
1022
+ value=\"27\">27<\/option>\n<option value=\"28\">28<\/option>\n<option value=\"29\">29<\/option>\n<option
1023
+ value=\"30\">30<\/option>\n<option value=\"31\">31<\/option>\n<option value=\"32\">32<\/option>\n<option
1024
+ value=\"33\">33<\/option>\n<option value=\"34\">34<\/option>\n<option value=\"35\">35<\/option>\n<option
1025
+ value=\"36\">36<\/option>\n<option value=\"37\">37<\/option>\n<option value=\"38\">38<\/option>\n<option
1026
+ value=\"39\">39<\/option>\n<option value=\"40\">40<\/option>\n<option value=\"41\">41<\/option>\n<option
1027
+ value=\"42\">42<\/option>\n<option value=\"43\">43<\/option>\n<option value=\"44\">44<\/option>\n<option
1028
+ value=\"45\">45<\/option>\n<option value=\"46\">46<\/option>\n<option value=\"47\">47<\/option>\n<option
1029
+ value=\"48\">48<\/option>\n<option value=\"49\">49<\/option>\n<option value=\"50\">50<\/option>\n<option
1030
+ value=\"51\">51<\/option>\n<option value=\"52\">52<\/option>\n<option value=\"53\">53<\/option>\n<option
1031
+ value=\"54\">54<\/option>\n<option value=\"55\">55<\/option>\n<option value=\"56\">56<\/option>\n<option
1032
+ value=\"57\">57<\/option>\n<option value=\"58\">58<\/option>\n<option value=\"59\">59<\/option>\n<\/select>\n&nbsp;\n<div
1033
+ class=\"hidden\"><label for=\"field28760456A\">AM\/PM<\/label><\/div>\n<select
1034
+ id=\"field28760456A\" name=\"field28760456A\" class=\"fsField fsRequired\"
1035
+ aria-required=\"true\">\n<option value=\"\" selected=\"selected\"> <\/option>\n<option
1036
+ value=\"AM\">AM<\/option>\n<option value=\"PM\">PM<\/option>\n<\/select>\n<div
1037
+ class=\"fs-clear\">\n<\/div>\n<\/span>\n<\/div><\/fieldset>\n<\/div>\n<\/div>\n<div
1038
+ id=\"fsRow1875865-5\" class=\"fsRow fsFieldRow fsLastRow\">\n<div class=\"fsRowBody
1039
+ fsCell fsFieldCell fsFirst fsLast fsLabelVertical fsSpan100\" id=\"fsCell28760457\"
1040
+ lang=\"en\">\n<label id=\"label28760457\" class=\"fsLabel fsRequiredLabel\"
1041
+ for=\"field28760457\">Detailed explanation of bug<span class=\"fsRequiredMarker\">*<\/span> <\/label>\n<textarea
1042
+ id=\"field28760457\" name=\"field28760457\" rows=\"10\" cols=\"50\" required
1043
+ class=\"fsField fsRequired\" aria-required=\"true\"><\/textarea>\n<\/div>\n<\/div>\n<div
1044
+ id=\"fsRow1875865-6\" class=\"fsRow fsFieldRow fsLastRow\">\n<div class=\"fsRowBody
1045
+ fsCell fsFieldCell fsFirst fsLast fsLabelVertical fsSpan100\" id=\"fsCell28760458\"
1046
+ lang=\"en\">\n<label id=\"label28760458\" class=\"fsLabel\" for=\"field28760458\">Upload
1047
+ a screen capture (optional) <\/label>\n<input
1048
+ type=\"file\" id=\"field28760458\" name=\"field28760458\" size=\"50\" class=\"fsField
1049
+ fsUpload uploadTypes-jpg,jpeg,gif,png,bmp,tif,psd,pdf,doc,docx,xls,txt,mp3,mp4,aac,wav,au,wmv,avi,mpg,mpeg,zip,gz,rar,z,tgz,tar,sitx\"
1050
+ \/>\n<div class=\"showMobile\">File uploads may not work on some mobile devices.<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div
1051
+ id=\"fsSubmit1875865\" class=\"fsSubmit fsPagination\">\n<button type=\"button\"
1052
+ id=\"fsPreviousButton1875865\" class=\"fsPreviousButton\" value=\"Previous
1053
+ Page\" style=\"display:none;\"><span class=\"fsFull\">Previous<\/span><span
1054
+ class=\"fsSlim\">&larr;<\/span><\/button>\n<button type=\"button\" id=\"fsNextButton1875865\"
1055
+ class=\"fsNextButton\" value=\"Next Page\" style=\"display:none;\"><span class=\"fsFull\">Next<\/span><span
1056
+ class=\"fsSlim\">&rarr;<\/span><\/button>\n<input id=\"fsSubmitButton1875865\"\nclass=\"fsSubmitButton\"\nstyle=\"display:
1057
+ block;\"\ntype=\"submit\"\nvalue=\"Submit Form\" \/>\n<div class=\"clear\"><\/div>\n<\/div>\n<script
1058
+ type=\"text\/javascript\" src=\"https:\/\/www.formstack.com\/forms\/js\/3\/jquery.min.js\"><\/script>\n<link
1059
+ href=\"https:\/\/www.formstack.com\/forms\/css\/3\/jquery-ui.css?20140508\"
1060
+ rel=\"stylesheet\" type=\"text\/css\" \/>\n<script type=\"text\/javascript\"
1061
+ src=\"https:\/\/www.formstack.com\/forms\/js\/3\/jquery-ui.min.js?20140508\"><\/script>\n<script
1062
+ type=\"text\/javascript\" src=\"https:\/\/www.formstack.com\/forms\/js\/3\/scripts.js?20141031\"><\/script>\n<script
1063
+ type=\"text\/javascript\" src=\"https:\/\/www.formstack.com\/forms\/js\/3\/analytics.js?20140409\"><\/script>\n<script
1064
+ type=\"text\/javascript\">\nif(window.addEventListener) {\nwindow.addEventListener(''load'',
1065
+ loadFormstack, false);\n} else if(window.attachEvent) {\nwindow.attachEvent(''onload'',
1066
+ loadFormstack);\n} else {\nloadFormstack();\n}\nfunction loadFormstack() {\nvar
1067
+ form1875865 = new Formstack.Form(1875865, ''https:\/\/www.formstack.com\/forms\/'');\nform1875865.logicFields
1068
+ = [];\nform1875865.calcFields = [];\nform1875865.init();\nform1875865.plugins.analytics
1069
+ = new Formstack.Analytics('''', 1875865, form1875865);\nform1875865.plugins.analytics.trackTouch();\nform1875865.plugins.analytics.trackBottleneck();\nwindow.form1875865
1070
+ = form1875865;\n};\n<\/script>\n<\/form>\n<img src=\"https:\/\/www.formstack.com\/forms\/count.php?1875865\"
1071
+ alt=\"Form View Counter\" width=\"1\" height=\"1\" border=\"0\" \/>\n<p style=\"display:block;width:128px;height:48px;margin:18px
1072
+ auto;\"><a href=\"http:\/\/www.formstack.com\/?fa=f,1875865\" target=\"_blank\" style=\"display:block;width:128px;height:48px;\"
1073
+ title=\"Powered by Formstack Online Forms\"><img src=\"https:\/\/www.formstack.com\/forms\/images\/2\/poweredByFormstack.png\"
1074
+ alt=\"Formstack Online Forms\" style=\"border:0; vertical-align: text-top;\"
1075
+ \/><span style=\"display:none;\">Formstack Online Forms<\/span><\/a><\/p>\n<\/body>\n<\/html>","fields":[{"id":"28760453","label":"","hide_label":"0","description":null,"name":"","type":"section","options":"","default":"","required":"0","uniq":"0","hidden":"0","readonly":"0","colspan":"1","sort":"1","label_position":"default","num_columns":"0","section_break":"0","section_heading":"Bug
1076
+ Report","section_text":"<p>Please be as detailed as possible to aid us in
1077
+ the troubleshooting process.<\/p>"},{"id":"28760454","label":"Your name","hide_label":"0","description":"","name":"your_name","type":"name","options":"","default":"","required":"1","uniq":"0","hidden":"0","readonly":"0","colspan":"1","sort":"2","show_initial":"","show_middle":"","show_prefix":"","show_suffix":"","text_size":"22"},{"id":"28760455","label":"Email","hide_label":"0","description":"","name":"email","type":"email","options":"","default":"","required":"1","uniq":"0","hidden":"0","readonly":"0","colspan":"1","sort":"3","text_size":"50"},{"id":"28760456","label":"Date
1078
+ and time you first noticed this bug","hide_label":"0","description":"","name":"date_and_time_you_first_noticed_this_bug","type":"datetime","options":"","default":null,"required":"1","uniq":"0","hidden":"0","readonly":"0","colspan":"1","sort":"4","date_format":"M
1079
+ d, Y","time_format":"h:i A","year_minus":"5","year_plus":"5"},{"id":"28760457","label":"Detailed
1080
+ explanation of bug","hide_label":"0","description":"","name":"detailed_explanation_of_bug","type":"textarea","options":"","default":"","required":"1","uniq":"0","hidden":"0","readonly":"0","colspan":"1","sort":"5","rows":"10","cols":"50"},{"id":"28760458","label":"Upload
1081
+ a screen capture (optional)","hide_label":"0","description":"","name":"upload_a_screen_capture_optional","type":"file","options":"","default":"","required":"0","uniq":"0","hidden":"0","readonly":"0","colspan":"1","sort":"6","text_size":"50","file_types":"jpg,jpeg,gif,png,bmp,tif,psd,pdf,doc,docx,xls,txt,mp3,mp4,aac,wav,au,wmv,avi,mpg,mpeg,zip,gz,rar,z,tgz,tar,sitx"}]}'
1082
+ http_version:
1083
+ recorded_at: Mon, 17 Nov 2014 08:07:31 GMT
650
1084
  recorded_with: VCR 2.9.3
@@ -0,0 +1,43 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://www.formstack.com/api/v2/form/<SUBMISSION_DETAILS_FORM_ID>/field
6
+ body:
7
+ encoding: UTF-8
8
+ string: field_type=embed
9
+ headers:
10
+ Authorization:
11
+ - Bearer <ACCESS_TOKEN>
12
+ response:
13
+ status:
14
+ code: 200
15
+ message: OK
16
+ headers:
17
+ Server:
18
+ - nginx
19
+ Date:
20
+ - Fri, 14 Nov 2014 14:18:21 GMT
21
+ Content-Type:
22
+ - application/json
23
+ Content-Length:
24
+ - '214'
25
+ Connection:
26
+ - keep-alive
27
+ P3p:
28
+ - CP="CURa ADMa DEVa PSAo PSDo OUR BUS UNI PUR INT DEM STA PRE COM NAV OTC NOI
29
+ DSP COR"
30
+ Set-Cookie:
31
+ - FormstackAdmin=vetdqcahfosv78v5lluuie0lg4; path=/api/; secure; HttpOnly
32
+ Location:
33
+ - https://www.formstack.com/api/v2/form/<SUBMISSION_DETAILS_FORM_ID>/field/28731004.json
34
+ Cache-Control:
35
+ - no-cache
36
+ X-Robots-Tag:
37
+ - noindex, nofollow
38
+ body:
39
+ encoding: UTF-8
40
+ string: '{"id":"28731004","label":"","hide_label":"0","description":null,"name":"","type":"embed","options":"","default":"","required":"0","uniq":"0","hidden":"0","readonly":"0","colspan":"1","sort":"14","section_text":"a"}'
41
+ http_version:
42
+ recorded_at: Fri, 14 Nov 2014 14:18:20 GMT
43
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,43 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://www.formstack.com/api/v2/form/<SUBMISSION_DETAILS_FORM_ID>/field
6
+ body:
7
+ encoding: UTF-8
8
+ string: field_type=text&label=Test%20Field%202014-11-14%2015%3A18%3A19%20%2B0100
9
+ headers:
10
+ Authorization:
11
+ - Bearer <ACCESS_TOKEN>
12
+ response:
13
+ status:
14
+ code: 200
15
+ message: OK
16
+ headers:
17
+ Server:
18
+ - nginx
19
+ Date:
20
+ - Fri, 14 Nov 2014 14:18:20 GMT
21
+ Content-Type:
22
+ - application/json
23
+ Content-Length:
24
+ - '277'
25
+ Connection:
26
+ - keep-alive
27
+ P3p:
28
+ - CP="CURa ADMa DEVa PSAo PSDo OUR BUS UNI PUR INT DEM STA PRE COM NAV OTC NOI
29
+ DSP COR"
30
+ Set-Cookie:
31
+ - FormstackAdmin=qken3fl9lj64pkqcu7t7dv8513; path=/api/; secure; HttpOnly
32
+ Location:
33
+ - https://www.formstack.com/api/v2/form/<SUBMISSION_DETAILS_FORM_ID>/field/28731003.json
34
+ Cache-Control:
35
+ - no-cache
36
+ X-Robots-Tag:
37
+ - noindex, nofollow
38
+ body:
39
+ encoding: UTF-8
40
+ string: '{"id":"28731003","label":"Test Field 2014-11-14 15:18:19 +0100","hide_label":"0","description":null,"name":"test_field_20141114_151819_0100","type":"text","options":"","default":"","required":"0","uniq":"0","hidden":"0","readonly":"0","colspan":"1","sort":"13","text_size":"a"}'
41
+ http_version:
42
+ recorded_at: Fri, 14 Nov 2014 14:18:19 GMT
43
+ recorded_with: VCR 2.9.3