-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathblocks.json
20 lines (20 loc) · 1.92 KB
/
blocks.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{
"blockception": {
"id": "6ae703ca8c4e3b243c9ea45fa0e94342",
"name": "Blockception",
"schema": ["sort", "tag"],
"description": "An API for Blockspring using Blockspring.\r\n\r\n# Give\r\n\r\n- **Sort**: One of `trending`, `new`, or `top`\r\n- **Tag**: Any Blockspring tag, such as `image-processing`\r\n\r\nLeave blank to default to `trending` and no tags\r\n\r\n# Get\r\n\r\nA JSON dictionary, keyed by block ID, that contains the following dictionary for each block as its value:\r\n\r\n- **url**: The full URL to the block, can be used for further processing\r\n- **name**: The human-readable name of the block\r\n- **tags**: A list of tags this block is tagged with\r\n\r\nYou're welcome.\r\n\r\n(Shameless plug: this works pretty swell with my Python interface to Blockspring [here](https://github.com/willyg302/hap.py))"
},
"get_block": {
"id": "916e3c15b1d0175167b69358175315e5",
"name": "Blockspring Block Info",
"schema": ["block_id"],
"description": "Given a block ID (e.g. `6ae703ca8c4e3b243c9ea45fa0e94342`), this returns a JSON dictionary containing info about that block. The dictionary has the following properties:\r\n\r\n- **id**: A simple ping of the ID you entered\r\n- **name**: Human-readable name of the block\r\n- **description**: The block's description in Markdown format\r\n- **schema**: A list of values, possibly empty, that you must specify when using the block (e.g. for the [Reverse Image Search](https://api.blockspring.com/users/pkpp1233/blocks/5a1b66ef208007c51a45fda220dbe8db) block, this will be `[\"image_url\"]`)"
},
"tags": {
"id": "40ecee22444642041bf4736330494f88",
"name": "Blockspring Tags",
"schema": [],
"description": "Returns a JSON array of current Blockspring tags. Each tag has the following properties:\r\n\r\n- **name**: The name of the tag, e.g. `image-processing`\r\n- **count**: Number of times the tag has been used\r\n- **description**: Equivalent to the tag's hover text"
}
}