{"_id":"5810429298aea40f00afa3a1","parentDoc":null,"user":"5588b847f6c18d0d005bba01","category":{"_id":"57f53fb368a53b2000e03f0f","version":"5588b8a2f6c18d0d005bba06","project":"5588b8a2f6c18d0d005bba03","__v":0,"sync":{"url":"","isSync":false},"reference":true,"createdAt":"2016-10-05T18:00:19.547Z","from_sync":false,"order":0,"slug":"api","title":"REST API"},"__v":2,"project":"5588b8a2f6c18d0d005bba03","version":{"_id":"5588b8a2f6c18d0d005bba06","project":"5588b8a2f6c18d0d005bba03","__v":15,"createdAt":"2015-06-23T01:38:42.696Z","releaseDate":"2015-06-23T01:38:42.696Z","categories":["5588b8a3f6c18d0d005bba07","5588e9689cfea70d00371df3","5588f5921163180d00b64704","561598b121e9110d0078025a","5616f1c9d170d00d00189306","5616f5c3a410c90d00c6121e","561803dcf8c9632100ac7592","563667280441020d0000e9eb","5642570d9417b40d00c0fcd3","57bf5f02efe0050e00d50bd5","57f53fb368a53b2000e03f0f","57f55187440418170086325a","582e3afa72fd270f0006926d","5841faa973967b0f004b4a2b","58db348aa32c8419002433bb"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"updates":["5936e53db128db001b4f0d6c"],"next":{"pages":[],"description":""},"createdAt":"2016-10-26T05:43:46.380Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"examples":{"codes":[{"code":"curl -v --header \"X-API-Token: <your token>\" \"https://api.mixmax.com/v1/yesno\"","language":"curl"}]},"method":"get","results":{"codes":[{"name":"","code":"{\n  \"results\": [\n    {\n      \"_id\": \"5810417a2abaf6a5595ffa88\",\n      \"userId\": \"kZYPwDDiGPTfQDj5n\",\n      \"created\": 1477460346533,\n      \"text\": \"Do you like cake?\",\n      \"answers\": [\n        {\n          \"text\": \"Yes\"\n        },\n        {\n          \"text\": \"No\",\n          \"respondents\": [\n            \"hello:::at:::mixmax.com\"\n          ]\n        },\n        {\n          \"text\": \"Maybe\"\n        }\n      ]\n    }\n  ]\n}\n","language":"json","status":200},{"code":"","language":"json","status":404,"name":""}]},"settings":"","auth":"required","params":[],"url":"/v1/yesno"},"isReference":true,"order":138,"body":"[block:parameters]\n{\n  \"data\": {\n    \"h-0\": \"Parameter\",\n    \"h-1\": \"Type\",\n    \"h-2\": \"Description\",\n    \"0-0\": \"_id\",\n    \"0-1\": \"*String*\",\n    \"0-2\": \"Unique ID\",\n    \"1-0\": \"userId\",\n    \"1-2\": \"Your user id\",\n    \"1-1\": \"*String*\",\n    \"2-0\": \"created\",\n    \"2-1\": \"*Timestamp*\",\n    \"3-0\": \"text\",\n    \"3-1\": \"*String*\",\n    \"2-2\": \"Unix timestamp when it was created\",\n    \"3-2\": \"The question\",\n    \"4-0\": \"answers\",\n    \"4-1\": \"*Array*\",\n    \"4-2\": \"Array of buttons\",\n    \"5-0\": \"answers.text\",\n    \"5-1\": \"*String*\",\n    \"5-2\": \"Button title\",\n    \"6-0\": \"answers.respondents\",\n    \"6-1\": \"*Array*\",\n    \"6-2\": \"Array of email addresses that have responded\"\n  },\n  \"cols\": 3,\n  \"rows\": 7\n}\n[/block]","excerpt":"Returns a list of Yes/No questions that you've sent out","slug":"yesno","type":"endpoint","title":"/yesno"}

get/yesno

Returns a list of Yes/No questions that you've sent out

Definition

{{ api_url }}{{ page_api_url }}

Examples


Result Format


Documentation

[block:parameters] { "data": { "h-0": "Parameter", "h-1": "Type", "h-2": "Description", "0-0": "_id", "0-1": "*String*", "0-2": "Unique ID", "1-0": "userId", "1-2": "Your user id", "1-1": "*String*", "2-0": "created", "2-1": "*Timestamp*", "3-0": "text", "3-1": "*String*", "2-2": "Unix timestamp when it was created", "3-2": "The question", "4-0": "answers", "4-1": "*Array*", "4-2": "Array of buttons", "5-0": "answers.text", "5-1": "*String*", "5-2": "Button title", "6-0": "answers.respondents", "6-1": "*Array*", "6-2": "Array of email addresses that have responded" }, "cols": 3, "rows": 7 } [/block]

User Information

Try It Out

get
{{ tryResults.results }}
Method{{ tryResults.method }}
Request Headers
{{ tryResults.requestHeaders }}
URL{{ tryResults.url }}
Request Data
{{ tryResults.data }}
Status
Response Headers
{{ tryResults.responseHeaders }}