This repository was archived by the owner on Jul 3, 2023. It is now read-only.

Description
Invalid payload error when I try to create a new Typeform.
Expected Behavior
A new form on Typeform should be created.
Current Behavior
No form is created because of an issue I can't fix.
Steps to Reproduce
- Copy and paste the code down below in any IDE.
- Run the code.
- See the error.
Context (Environment)
I've been trying to solve this by myself for hours but I can't find a way to fix this.
This issue is the only problem I have to accomplish my work : I am trying to make a Python application to create a form using the data (questions) in an Excel file.
my_typeform = typeform.Typeform(getpass('Token (text will be hidden): '))
# Create a new form
my_typeform.forms.create({
'type': 'quiz',
'title': 'My typeform',
'fields': [
{
'title': 'Nice to meet you, how is your day going?',
'properties': {
'randomize': False,
'allow_multiple_selection': False,
'allow_other_choice': False,
'vertical_alignment': True,
'choices': [
{'label': 'Terrific!'},
{'label': 'Not so well...'}
]
}
}
]
})