数据
GET https://dijital.link/api/data/
curl --request GET \
--url 'https://dijital.link/api/data/' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://dijital.link/api/data/' \
--header 'Authorization: Bearer {api_key}' \
参数 | 细节 | 描述 |
---|---|---|
page | 可选的 整数 | 您想要结果的页面编号。默认为1 。 |
results_per_page | 可选的 整数 | 每页显示多少个结果。允许的值为:10 , 25 , 50 , 100 , 250 , 500 , 1000 。默认为25 。 |
{
"data": [
{
"id": 1,
"biolink_block_id": 1,
"link_id": 1,
"project_id": 1,
"type": "mail",
"data": {
"email": "email@example.com",
"name": "John doe"
},
"datetime": "2021-09-17 20:56:23"
},
],
"meta": {
"page": 1,
"results_per_page": 25,
"total": 1,
"total_pages": 1
},
"links": {
"first": "https://dijital.link/api/data?&page=1",
"last": "https://dijital.link/api/data?&page=1",
"next": null,
"prev": null,
"self": "https://dijital.link/api/data?&page=1"
}
}
GET https://dijital.link/api/data/{datum_id}
curl --request GET \
--url 'https://dijital.link/api/data/{datum_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://dijital.link/api/data/{datum_id}' \
--header 'Authorization: Bearer {api_key}' \
{
"data": {
"id": 1,
"biolink_block_id": 1,
"link_id": 1,
"project_id": 1,
"type": "mail",
"data": {
"email": "email@example.com",
"name": "John doe"
},
"datetime": "2021-09-17 20:56:23"
}
}
DELETE https://dijital.link/api/data/{datum_id}
curl --request DELETE \
--url 'https://dijital.link/api/data/{datum_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://dijital.link/api/data/{datum_id}' \
--header 'Authorization: Bearer {api_key}' \