The Space object is read only.
Name | Type | Description |
---|---|---|
id | integer | ID is sequentially running starting from 1. |
object | string | Is "space". |
created | integer | |
url | string | If null, the space is not publicly available. |
{
"object": "space",
"id": 1,
"created": 1410196557,
"url": "https://spaces.pe/s/EXAMPLE"
}
Returns a specified Space.
$ curl https://spaces.com/api/v1/spaces/1 \
-u ACCESS_TOKEN:
{
"object": "space",
"id": 1,
"created": 1410196557,
"url": "https://spaces.pe/s/EXAMPLE"
}
Returns a list of all Spaces.
curl https://spaces.com/api/v1/spaces \
-u ACCESS_TOKEN:
{
"object": "list",
"count": 20,
"has_more": true,
"data": [
{
"object": "space",
"id": 1,
"created": 1410196557,
"url": "https://spaces.pe/s/EXAMPLE"
},
{...}
]
}