The customer object is read only.
Name | Type | Description |
---|---|---|
object | string | Is "customer". |
id | string | |
name | string | |
string | ||
created | integer | |
space | object |
{
"object": "customer",
"id": "CUSTOMER_TOKEN",
"name": "John Doe",
"email": "[email protected]",
"created": 1410196557,
"space": {
"object": "space",
"id": 1,
"created": 1410196557,
"url": "https://spaces.pe/s/EXAMPLE"
}
}
Returns a specified customer. The customer id is unique among all Spaces for a user.
curl https://spaces.com/api/v1/customers/CUSTOMER_TOKEN \
-u ACCESS_TOKEN:
{
"object": "customer",
"id": "CUSTOMER_TOKEN",
"name": "John Doe",
"email": "[email protected]",
"created": 1410196557,
"space": {
"object": "space",
"id": 1,
"created": 1410196557,
"url": "https://spaces.pe/s/EXAMPLE"
}
}
Returns a list of all customers.
curl https://spaces.com/api/v1/customers \
-u ACCESS_TOKEN:
{
"object": "list",
"count": 20,
"has_more": true,
"data": [
{
"object": "customer",
"id": "CUSTOMER_TOKEN",
"name": "John Doe",
"email": "[email protected]",
"created": 1410196557,
"space": {
"object": "space",
"id": 1,
"created": 1410196557,
"url": "https://spaces.pe/s/EXAMPLE"
}
},
{...}
]
}