curl --request GET \
--url https://api.dittowords.com/v2/variables \
--header 'Authorization: <api-key>'
[
{
"id": "Age",
"name": "Age",
"type": "number",
"data": {
"example": 21,
"fallback": "18"
}
},
{
"id": "Jobs",
"name": "Jobs",
"type": "string",
"data": {
"example": "Engineer",
"fallback": "Designer"
}
},
{
"id": "Link",
"name": "Link",
"type": "hyperlink",
"data": {
"text": "View",
"url": "https://www.google.com/"
}
},
{
"id": "List",
"name": "List",
"type": "list",
"data": [
"true",
"false"
]
},
{
"id": "Map",
"name": "Map",
"type": "map",
"data": {
"0": "Zero",
"1": "One",
"2": "Two"
}
}
]
Returns a list of the variables in the workspace.
curl --request GET \
--url https://api.dittowords.com/v2/variables \
--header 'Authorization: <api-key>'
[
{
"id": "Age",
"name": "Age",
"type": "number",
"data": {
"example": 21,
"fallback": "18"
}
},
{
"id": "Jobs",
"name": "Jobs",
"type": "string",
"data": {
"example": "Engineer",
"fallback": "Designer"
}
},
{
"id": "Link",
"name": "Link",
"type": "hyperlink",
"data": {
"text": "View",
"url": "https://www.google.com/"
}
},
{
"id": "List",
"name": "List",
"type": "list",
"data": [
"true",
"false"
]
},
{
"id": "Map",
"name": "Map",
"type": "map",
"data": {
"0": "Zero",
"1": "One",
"2": "Two"
}
}
]
Returns an array of variables in the workspace