request

package
v0.0.0-...-a733815 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 6, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnswerDateTime

type AnswerDateTime struct {
	AnswerTypeInterface
	Headings []struct {
		Heading string `json:"heading"`
	} `json:"headings"`
	Position int    `json:"position"`
	Visible  bool   `json:"visible"`
	Family   string `json:"family"`
	Subtype  string `json:"subtype"`
	Answers  struct {
		Rows []struct {
			Text     string `json:"text"`
			Position int    `json:"position"`
		} `json:"rows"`
	} `json:"answers"`
}

type AnswerDemographic

type AnswerDemographic struct {
	AnswerTypeInterface
	Headings []struct {
		Heading string `json:"heading"`
	} `json:"headings"`
	Position int    `json:"position"`
	Visible  bool   `json:"visible"`
	Family   string `json:"family"`
	Subtype  string `json:"subtype"`
	Answers  struct {
		Rows []struct {
			Visible  bool   `json:"visible"`
			Required bool   `json:"required"`
			Type     string `json:"type"`
			Text     string `json:"text,omitempty"`
		} `json:"rows"`
	} `json:"answers"`
}

type AnswerEmoji

type AnswerEmoji struct {
	AnswerTypeInterface
	Headings []struct {
		Heading string `json:"heading"`
	} `json:"headings"`
	Position       int    `json:"position"`
	Family         string `json:"family"`
	Subtype        string `json:"subtype"`
	DisplayOptions struct {
		DisplayType    string `json:"display_type"`
		DisplaySubtype string `json:"display_subtype"`
	} `json:"display_options"`
	ForcedRanking bool `json:"forced_ranking"`
	Answers       struct {
		Rows []struct {
			Visible  bool   `json:"visible"`
			Text     string `json:"text"`
			Position int    `json:"position"`
		} `json:"rows"`
		Choices []struct {
			Weight int    `json:"weight"`
			Text   string `json:"text"`
		} `json:"choices"`
	} `json:"answers"`
}

type AnswerFileUpload

type AnswerFileUpload struct {
	AnswerTypeInterface
	Headings []struct {
		Heading string `json:"heading"`
	} `json:"headings"`
	Position       int    `json:"position"`
	Family         string `json:"family"`
	Subtype        string `json:"subtype"`
	DisplayOptions struct {
		DisplayType string `json:"display_type"`
	} `json:"display_options"`
}

type AnswerImageChoice

type AnswerImageChoice struct {
	AnswerTypeInterface
	Headings []struct {
		Heading string `json:"heading"`
	} `json:"headings"`
	Position       int    `json:"position"`
	Family         string `json:"family"`
	Subtype        string `json:"subtype"`
	DisplayOptions struct {
		DisplayType string `json:"display_type"`
	} `json:"display_options"`
	Answers struct {
		Choices []struct {
			Text  string `json:"text"`
			Image struct {
				URL string `json:"url"`
			} `json:"image"`
		} `json:"choices"`
	} `json:"answers"`
}

type AnswerMatrixMenu

type AnswerMatrixMenu struct {
	AnswerTypeInterface
	Headings []struct {
		Heading string `json:"heading"`
	} `json:"headings"`
	Position int    `json:"position"`
	Family   string `json:"family"`
	Subtype  string `json:"subtype"`
	Answers  struct {
		Rows []struct {
			Text string `json:"text"`
		} `json:"rows"`
		Cols []struct {
			Text    string `json:"text"`
			Choices []struct {
				Text     string `json:"text"`
				Visible  bool   `json:"visible"`
				Position int    `json:"position"`
			} `json:"choices"`
		} `json:"cols"`
	} `json:"answers"`
}

type AnswerMatrixRanking

type AnswerMatrixRanking struct {
	AnswerTypeInterface
	Headings []struct {
		Heading string `json:"heading"`
	} `json:"headings"`
	Position int    `json:"position"`
	Family   string `json:"family"`
	Subtype  string `json:"subtype"`
	Answers  struct {
		Rows []struct {
			Text string `json:"text"`
		} `json:"rows"`
	} `json:"answers"`
}

type AnswerMatrixRating

type AnswerMatrixRating struct {
	AnswerTypeInterface
	Headings []struct {
		Heading string `json:"heading"`
	} `json:"headings"`
	Position      int    `json:"position"`
	Family        string `json:"family"`
	Subtype       string `json:"subtype"`
	ForcedRanking bool   `json:"forced_ranking"`
	Answers       struct {
		Rows []struct {
			Text string `json:"text"`
		} `json:"rows"`
		Choices []struct {
			Text   string `json:"text"`
			Weight int    `json:"weight"`
		} `json:"choices"`
	} `json:"answers"`
}

type AnswerMatrixSingle

type AnswerMatrixSingle struct {
	AnswerTypeInterface
	Headings []struct {
		Heading string `json:"heading"`
	} `json:"headings"`
	Position      int    `json:"position"`
	Family        string `json:"family"`
	Subtype       string `json:"subtype"`
	ForcedRanking bool   `json:"forced_ranking"`
	Answers       struct {
		Rows []struct {
			Text string `json:"text"`
		} `json:"rows"`
		Choices []struct {
			Text string `json:"text"`
		} `json:"choices"`
	} `json:"answers"`
}

type AnswerMultipleChoice

type AnswerMultipleChoice struct {
	AnswerTypeInterface
	Headings []struct {
		Heading string `json:"heading"`
	} `json:"headings"`
	Position int    `json:"position"`
	Family   string `json:"family"`
	Subtype  string `json:"subtype"`
	Answers  struct {
		Choices []struct {
			Text string `json:"text"`
		} `json:"choices"`
	} `json:"answers"`
}

type AnswerOpenEnded

type AnswerOpenEnded struct {
	AnswerTypeInterface
	Headings []struct {
		Heading string `json:"heading"`
	} `json:"headings"`
	Position int    `json:"position"`
	Family   string `json:"family"`
	Subtype  string `json:"subtype"`
}

type AnswerOpenEndedMulti

type AnswerOpenEndedMulti struct {
	AnswerTypeInterface
	Headings []struct {
		Heading string `json:"heading"`
	} `json:"headings"`
	Position int    `json:"position"`
	Family   string `json:"family"`
	Subtype  string `json:"subtype"`
	Answers  struct {
		Rows []struct {
			Text string `json:"text"`
		} `json:"rows"`
	} `json:"answers"`
}

type AnswerOpenEndedNumerical

type AnswerOpenEndedNumerical struct {
	AnswerTypeInterface
	Headings []struct {
		Heading string `json:"heading"`
	} `json:"headings"`
	Position int    `json:"position"`
	Family   string `json:"family"`
	Subtype  string `json:"subtype"`
	Answers  struct {
		Rows []struct {
			Text string `json:"text"`
		} `json:"rows"`
	} `json:"answers"`
	Validation struct {
		Text    string `json:"text"`
		Type    string `json:"type"`
		Sum     int    `json:"sum"`
		SumText string `json:"sum_text"`
	} `json:"validation"`
}

type AnswerPresentation

type AnswerPresentation struct {
	AnswerTypeInterface
	Headings []struct {
		Heading string `json:"heading"`
		Image   struct {
			URL string `json:"url"`
		} `json:"image"`
	} `json:"headings"`
	Position int    `json:"position"`
	Family   string `json:"family"`
	Subtype  string `json:"subtype"`
}

type AnswerQuestionsBankQuestions

type AnswerQuestionsBankQuestions struct {
	AnswerTypeInterface
	QuestionBank struct {
		QuestionBankQuestionID string `json:"question_bank_question_id"`
		ModifierOptions        struct {
			Num36628 interface{} `json:"36628"`
		} `json:"modifier_options"`
	} `json:"question_bank"`
}

type AnswerQuizQuestions

type AnswerQuizQuestions struct {
	AnswerTypeInterface
	Headings []struct {
		Heading string `json:"heading"`
	} `json:"headings"`
	Position int    `json:"position"`
	Family   string `json:"family"`
	Subtype  string `json:"subtype"`
	Answers  struct {
		Choices []struct {
			Text        string `json:"text"`
			QuizOptions struct {
				Score int `json:"score"`
			} `json:"quiz_options"`
		} `json:"choices"`
	} `json:"answers"`
	QuizOptions struct {
		ScoringEnabled bool `json:"scoring_enabled"`
		Feedback       struct {
			CorrectText   string `json:"correct_text"`
			IncorrectText string `json:"incorrect_text"`
		} `json:"feedback"`
	} `json:"quiz_options"`
}

type AnswerSinglechoice

type AnswerSinglechoice struct {
	AnswerTypeInterface
	Headings []struct {
		Heading string `json:"heading"`
	} `json:"headings"`
	Position int    `json:"position"`
	Family   string `json:"family"`
	Subtype  string `json:"subtype"`
	Answers  struct {
		Choices []struct {
			Text string `json:"text"`
		} `json:"choices"`
		Other []struct {
			Text     string `json:"text"`
			NumChars int    `json:"num_chars"`
			NumLines int    `json:"num_lines"`
		} `json:"other"`
	} `json:"answers"`
}

type AnswerSlider

type AnswerSlider struct {
	AnswerTypeInterface
	Headings []struct {
		Heading string `json:"heading"`
	} `json:"headings"`
	Position       int    `json:"position"`
	Family         string `json:"family"`
	Subtype        string `json:"subtype"`
	DisplayOptions struct {
		DisplayType string `json:"display_type"`
	} `json:"display_options"`
}

type AnswerSliderComplex

type AnswerSliderComplex struct {
	AnswerTypeInterface
	Headings []struct {
		Heading string `json:"heading"`
	} `json:"headings"`
	Position       int    `json:"position"`
	Family         string `json:"family"`
	Subtype        string `json:"subtype"`
	DisplayOptions struct {
		RightLabel    string `json:"right_label"`
		DisplayType   string `json:"display_type"`
		CustomOptions struct {
			StartingPosition int `json:"starting_position"`
			StepSize         int `json:"step_size"`
		} `json:"custom_options"`
		LeftLabel string `json:"left_label"`
	} `json:"display_options"`
	Validation struct {
		SumText string `json:"sum_text"`
		Min     int    `json:"min"`
		Text    string `json:"text"`
		Max     int    `json:"max"`
		Type    string `json:"type"`
	} `json:"validation"`
}

type AnswerTypeInterface

type AnswerTypeInterface interface {
}

type ButtonsText

type ButtonsText struct {
	NextButton string `json:"next_button,omitempty"`
	PrevButton string `json:"prev_button,omitempty"`
	ExitButton string `json:"exit_button,omitempty"`
	DoneButton string `json:"done_button,omitempty"`
}

type CategoryRequest

type CategoryRequest struct {
	Page     int    `url:"page,omitempty"`
	PerPage  int    `url:"per_page,omitempty"`
	Language string `url:"language,omitempty"`
}

func (CategoryRequest) String

func (u CategoryRequest) String() string

type CollectorRequest

type CollectorRequest struct {
	Page      int    `url:"page,omitempty"`
	PerPage   int    `url:"per_page,omitempty"`
	SortBy    string `url:"sort_by,omitempty"`
	SortOrder string `url:"sort_order,omitempty"`
	Name      string `url:"name,omitempty"`
	StartDate int    `url:"start_date,omitempty"`
	EndDate   int    `url:"end_date,omitempty"`
	Include   int    `url:"include,omitempty"`
}

func (CollectorRequest) String

func (u CollectorRequest) String() string

type CreateSurvey

type CreateSurvey struct {
	Page            int    `json:"page,omitempty"`
	PerPage         int    `json:"per_page,omitempty"`
	SortBy          string `json:"sort_by,omitempty"`    //title, date_modified, or num_responses
	SortOrder       string `json:"sort_order,omitempty"` //asc or desc
	Include         int    `string:"include,omitempty"`
	Title           string `json:"title,omitempty"`
	StartModifiedAt string `json:"start_modified_at,omitempty"` //YYYY-MM-DDTHH:MM:S
	EndModifiedAt   string `json:"end_modified_at,omitempty"`   //YYYY-MM-DDTHH:MM:S
	FolderId        string `json:"folder_id,omitempty"`
}

type FeedBack

type FeedBack struct {
	CorrectText   string `json:"correct_text"`
	IncorrectText string `json:"incorrect_text"`
	PartialText   string `json:"partial_text"`
}

type Image

type Image struct {
	Url int `json:"url"`
}

type ModifySurvey

type ModifySurvey struct {
	Title           string            `json:"title,omitempty"`
	NickName        string            `json:"nickname,omitempty"`
	Language        string            `json:"language,omitempty"`
	ButtonsText     *ButtonsText      `json:"buttons_text,omitempty"`
	CustomVariables map[string]string `json:"custom_variables,omitempty"`
	Footer          bool              `json:"footer"`
}

type PageRequest

type PageRequest struct {
	Page    int `url:"page,omitempty"`
	PerPage int `url:"per_page,omitempty"`
}

func (PageRequest) String

func (u PageRequest) String() string

type QuizOptions

type QuizOptions struct {
	ScoringEnabled bool      `json:"scoring_enabled"`
	FeedBack       *FeedBack `json:"feedback"`
}

type RandomAssignment

type RandomAssignment struct {
	Percent      int    `json:"percent"`
	Position     int    `json:"position"`
	VariableName string `json:"variable_name"`
}

type Required

type Required struct {
	Text   string `json:"text"`
	Type   string `json:"type"` //all , at_least, at_most, exactly, or range
	Amount string `json:"amount"`
}

type Sorting

type Sorting struct {
	Type       string `json:"type"` //default, textasc, textdesc, resp_count_asc, resp_count_desc, random, flip
	IgnoreLast bool   `json:"ignore_last"`
}

type SurveyHeading

type SurveyHeading struct {
	Heading          string            `json:"heading"`
	Description      string            `json:"description,omitempty"`
	Image            *Image            `json:"image,omitempty"`
	RandomAssignment *RandomAssignment `json:"random_assignment,omitempty"`
}

type SurveyPage

type SurveyPage struct {
	Title         string `json:"title"`
	Description   string `json:"description"`
	Position      int    `json:"position"`
	QuestionCount int    `json:"question_count"`
	ID            string `json:"id"`
	Href          string `json:"href"`
}

type SurveyQuestion

type SurveyQuestion struct {
	Heading       []*SurveyHeading    `json:"headings"`
	Position      int                 `json:"position,omitempty"`
	Family        string              `json:"family"`
	Subtype       string              `json:"subtype"`
	Sorting       *Sorting            `json:"sorting,omitempty"`
	Required      *Required           `json:"required,omitempty"`
	Validation    *Validation         `json:"validation,omitempty"`
	ForcedRanking bool                `json:"forced_ranking,omitempty"`
	QuizOptions   *QuizOptions        `json:"quiz_options,omitempty"`
	Answers       AnswerTypeInterface `json:"answers"`
}

type SurveyRequest

type SurveyRequest struct {
	Title           string `url:"title,omitempty"`
	Page            int    `url:"page,omitempty"`
	PerPage         int    `url:"per_page,omitempty"`
	SortBy          string `url:"sort_by,omitempty"`
	SortOrder       string `url:"sort_order,omitempty"`
	Include         string `url:"include,omitempty"`
	StartModifiedAt string `url:"start_modified_at,omitempty"`
	EndModifiedAt   string `url:"end_modified_at,omitempty"`
	FolderId        string `url:"folder_id,omitempty"`
}

func (SurveyRequest) String

func (u SurveyRequest) String() string

type SurveyTitle

type SurveyTitle struct {
	Title string `json:"title,omitempty"`
}

* This file is subject to the terms and conditions defined in * file 'LICENSE.txt', which is part of this source code package.

type TemplatesRequest

type TemplatesRequest struct {
	Page     int    `url:"page,omitempty"`
	PerPage  int    `url:"per_page,omitempty"`
	Language string `url:"language,omitempty"`
	Category string `url:"category,omitempty"`
}

func (TemplatesRequest) String

func (u TemplatesRequest) String() string

type Validation

type Validation struct {
	Type    string `json:"type"` //any, integer, decimal, date_us, date_intl, regex, email, or text_length
	Text    string `json:"text"`
	Min     string `json:"min"`
	Max     string `json:"max"`
	Sum     int    `json:"sum"`
	SumText string `json:"sum_text"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL